Documentation ¶
Index ¶
- type API
- type Service
- func (s *Service) Login(ctx context.Context, code, state string) (*skillz.User, error)
- func (s *Service) NewUsersBySP(ctx context.Context) ([]*skillz.UserWithSkillMeta, error)
- func (s *Service) ProcessUpdatableUsers(ctx context.Context) error
- func (s *Service) RefreshUser(ctx context.Context, user *skillz.User) error
- func (s *Service) SearchUsers(ctx context.Context, q string) ([]*skillz.UserSearchResult, error)
- func (s *Service) UserByCookie(ctx context.Context, cookie *http.Cookie) (*skillz.User, error)
- func (s *Service) UserFromToken(ctx context.Context, token jwt.Token) (*skillz.User, error)
- func (s *Service) ValidateCurrentToken(ctx context.Context, user *skillz.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Login(ctx context.Context, code, state string) (*skillz.User, error) UserFromToken(ctx context.Context, token jwt.Token) (*skillz.User, error) ValidateCurrentToken(ctx context.Context, user *skillz.User) error User(ctx context.Context, id uuid.UUID) (*skillz.User, error) RefreshUser(ctx context.Context, user *skillz.User) error UserByCharacterID(ctx context.Context, characterID uint64) (*skillz.User, error) UserByCookie(ctx context.Context, cookie *http.Cookie) (*skillz.User, error) SearchUsers(ctx context.Context, q string) ([]*skillz.UserSearchResult, error) UpdateUser(ctx context.Context, user *skillz.User) error NewUsersBySP(ctx context.Context) ([]*skillz.UserWithSkillMeta, error) ProcessUpdatableUsers(ctx context.Context) error }
type Service ¶
type Service struct { skillz.UserRepository // contains filtered or unexported fields }
func (*Service) NewUsersBySP ¶
func (*Service) ProcessUpdatableUsers ¶
func (*Service) RefreshUser ¶
func (*Service) SearchUsers ¶
func (*Service) UserByCookie ¶
func (*Service) UserFromToken ¶
Click to show internal directories.
Click to hide internal directories.