Documentation
¶
Index ¶
- Variables
- type CreateInput
- type InstanceManager
- type Service
- func (s *Service) Create(ctx context.Context, input CreateInput) (model.User, string, error)
- func (s *Service) Delete(ctx context.Context, id string) error
- func (s *Service) Exists(ctx context.Context, id string) (bool, error)
- func (s *Service) Get(ctx context.Context, id string) (model.User, error)
- func (s *Service) List(ctx context.Context) ([]model.User, error)
- func (s *Service) RotateAPIToken(ctx context.Context, id string) (string, error)
- func (s *Service) UpdatePassword(ctx context.Context, id, password string) error
- type TokenManager
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CreateInput ¶
type InstanceManager ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo storage.UserRepository, tokenService TokenManager, instanceSvc InstanceManager) *Service
func (*Service) RotateAPIToken ¶
Click to show internal directories.
Click to hide internal directories.