Versions in this module Expand all Collapse all v1 v1.3.1 Jul 11, 2018 v1.3.0 Jun 10, 2018 Changes in this version + func MakeApplyUserEndpoint(svc Service) endpoint.Endpoint + func MakeListUsersEndpoint(svc Service) endpoint.Endpoint + func MarshalUser(u *User) ([]byte, error) + func RegisterHTTPHandlers(r *mux.Router, e Endpoints, options ...httptransport.ServerOption) + func UnmarshalUser(data []byte, u *User) error + type Endpoints struct + ApplyUserEndpoint endpoint.Endpoint + ListUsersEndpoint endpoint.Endpoint + func MakeServerEndpoints(s Service, outer endpoint.Middleware, others ...endpoint.Middleware) Endpoints + func (e Endpoints) ApplyUser(ctx context.Context, u User) (*User, error) + func (e Endpoints) ListUsers(ctx context.Context, opts ListUsersOption) ([]User, error) + type ListUsersOption struct + FilterUDID []string + FilterUserID []string + Page int + PerPage int + type Service interface + ApplyUser func(ctx context.Context, u User) (*User, error) + ListUsers func(ctx context.Context, opt ListUsersOption) ([]User, error) + func NewHTTPClient(instance, token string, logger log.Logger, opts ...httptransport.ClientOption) (Service, error) + type Store interface + List func() ([]User, error) + Save func(*User) error + User func(string) (*User, error) + type User struct + AuthToken string + Hidden bool + PasswordHash []byte + UDID string + UUID string + UserID string + UserLongname string + UserShortname string + func NewFromRequest(u User) (*User, error) + type UserService struct + func New(store Store) *UserService + func (svc *UserService) ApplyUser(ctx context.Context, u User) (*User, error) + func (svc *UserService) ListUsers(ctx context.Context, opts ListUsersOption) ([]User, error) + type Worker struct + func NewWorker(db WorkerStore, subscriber pubsub.Subscriber, logger log.Logger) *Worker + func (w *Worker) Run(ctx context.Context) error + type WorkerStore interface + DeleteDeviceUsers func(udid string) error + Save func(*User) error + UserByUserID func(userID string) (*User, error)