refactor: moving items around into related files/packages

This commit is contained in:
Jon Lundy
2022-11-23 13:51:55 -07:00
parent bbb45c8854
commit 7315759b20
23 changed files with 1320 additions and 1097 deletions

View File

@@ -51,7 +51,7 @@ var saltyKey = contextKey{"salty"}
type SaltyResolver interface {
CreateSaltyUser(ctx context.Context, nick string, pub string) (*SaltyUser, error)
SaltyUser(ctx context.Context, nick string) (*SaltyUser, error)
RegisterHTTP(mux *http.ServeMux)
IsResolver()
}
func New(ctx context.Context, es *es.EventStore, baseURL string) (*service, error) {
@@ -111,6 +111,8 @@ func New(ctx context.Context, es *es.EventStore, baseURL string) (*service, erro
return svc, errs
}
func (s *service) IsResolver() {}
func (s *service) BaseURL() string {
if s == nil {
return "http://missing.context/"