Documentation
¶
Index ¶
- type Database
- type Service
- func (s Service) Create(ctx context.Context) (model.User, error)
- func (s Service) CreateBasic(ctx context.Context, login, password string) (model.User, error)
- func (s Service) CreateGithub(ctx context.Context) (model.User, string, error)
- func (s Service) Delete(ctx context.Context, o model.User) error
- func (s Service) DoAtomic(ctx context.Context, action func(context.Context) error) error
- func (s Service) GetBasicUser(ctx context.Context, _ *http.Request, login, password string) (model.User, error)
- func (s Service) GetGitHubUser(ctx context.Context, id uint64, registration string) (model.User, error)
- func (s Service) IsAuthorized(ctx context.Context, user model.User, profile string) bool
- func (s Service) UpdateGitHubUser(ctx context.Context, user model.User, githubID, githubLogin string) error
- func (s Service) UpdatePassword(ctx context.Context, user model.User, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (Service) CreateBasic ¶ added in v3.0.1
func (Service) CreateGithub ¶ added in v3.0.1
func (Service) GetBasicUser ¶
func (Service) GetGitHubUser ¶
func (Service) IsAuthorized ¶
func (Service) UpdateGitHubUser ¶
Click to show internal directories.
Click to hide internal directories.