Documentation ¶
Index ¶
- Variables
- type API
- type Permission
- type Service
- func (s *Service) CreateUserSettings(ctx context.Context, id uuid.UUID, settings *skillz.UserSettings) error
- func (s *Service) LoadAttributes(ctx context.Context, user *skillz.User, entry *logrus.Entry, mx *sync.Mutex, ...)
- func (s *Service) LoadCharacter(ctx context.Context, user *skillz.User, entry *logrus.Entry, mx *sync.Mutex, ...)
- func (s *Service) LoadFlyable(ctx context.Context, user *skillz.User, entry *logrus.Entry, mx *sync.Mutex, ...)
- func (s *Service) LoadSkillGrouped(ctx context.Context, user *skillz.User, entry *logrus.Entry, mx *sync.Mutex, ...)
- func (s *Service) LoadSkillMeta(ctx context.Context, user *skillz.User, entry *logrus.Entry, mx *sync.Mutex, ...)
- func (s *Service) LoadSkillQueue(ctx context.Context, user *skillz.User, entry *logrus.Entry, mx *sync.Mutex, ...)
- func (s *Service) LoadSkills(ctx context.Context, user *skillz.User, entry *logrus.Entry, mx *sync.Mutex, ...)
- func (s *Service) LoadUserAll(ctx context.Context, id uuid.UUID) (*skillz.User, error)
- func (s *Service) Login(ctx context.Context, code, state string) (*skillz.User, error)
- func (s *Service) ProcessUpdatableUsers(ctx context.Context) error
- func (s *Service) Recent(ctx context.Context) ([]*skillz.User, []*skillz.User, error)
- func (s *Service) RefreshUser(ctx context.Context, user *skillz.User) error
- func (s *Service) ResetUserCache(ctx context.Context, user *skillz.User) error
- func (s *Service) SearchUsers(ctx context.Context, q string) ([]*skillz.UserSearchResult, error)
- func (s *Service) User(ctx context.Context, id uuid.UUID, rels ...UserRel) (*skillz.User, error)
- func (s *Service) UserFromToken(ctx context.Context, token jwt.Token) (*skillz.User, error)
- func (s *Service) UserSettings(ctx context.Context, id uuid.UUID) (*skillz.UserSettings, error)
- func (s *Service) ValidateCurrentToken(ctx context.Context, user *skillz.User) error
- type UserRel
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUserNotFound = errors.New("user does not exist")
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Login(ctx context.Context, code, state string) (*skillz.User, error) LoadUserAll(ctx context.Context, id uuid.UUID) (*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, rels ...UserRel) (*skillz.User, error) RefreshUser(ctx context.Context, user *skillz.User) error UserByCharacterID(ctx context.Context, characterID uint64) (*skillz.User, error) SearchUsers(ctx context.Context, q string) ([]*skillz.UserSearchResult, error) UpdateUser(ctx context.Context, user *skillz.User) error Recent(ctx context.Context) ([]*skillz.User, []*skillz.User, error) // NewUsersBySP(ctx context.Context) ([]*skillz.UserWithSkillMeta, error) ResetUserCache(ctx context.Context, user *skillz.User) error ProcessUpdatableUsers(ctx context.Context) error UserSettings(ctx context.Context, id uuid.UUID) (*skillz.UserSettings, error) CreateUserSettings(ctx context.Context, userID uuid.UUID, settings *skillz.UserSettings) error }
type Permission ¶
type Permission uint
const ( PermissionHideQueue Permission = iota PermissionHideClones PermissionHideStandings PermissionHideShips )
type Service ¶
type Service struct { skillz.UserRepository // contains filtered or unexported fields }
func (*Service) CreateUserSettings ¶
func (*Service) LoadAttributes ¶
func (*Service) LoadCharacter ¶
func (*Service) LoadFlyable ¶
func (*Service) LoadSkillGrouped ¶
func (*Service) LoadSkillMeta ¶
func (*Service) LoadSkillQueue ¶
func (*Service) LoadSkills ¶
func (*Service) LoadUserAll ¶
func (*Service) ProcessUpdatableUsers ¶
func (*Service) RefreshUser ¶
func (*Service) ResetUserCache ¶ added in v0.3.3
func (*Service) SearchUsers ¶
func (*Service) UserFromToken ¶
func (*Service) UserSettings ¶
Click to show internal directories.
Click to hide internal directories.