Documentation
¶
Index ¶
- type Database
- type Service
- func (s Service) Create(ctx context.Context, o model.User) (uint64, 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) Get(ctx context.Context, id uint64) (model.User, error)
- func (s Service) IsAuthorized(ctx context.Context, user model.User, profile string) bool
- func (s Service) Login(ctx context.Context, login, password string) (model.User, error)
- func (s Service) Update(ctx context.Context, o model.User) error
- func (s Service) UpdatePassword(ctx context.Context, o model.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶ added in v2.16.0
type Service struct {
// contains filtered or unexported fields
}
func (Service) IsAuthorized ¶ added in v2.16.0
Click to show internal directories.
Click to hide internal directories.