Documentation ¶
Index ¶
- type Service
- func (s *Service) AddAPIKey(ctx context.Context, cmd *apikey.AddCommand) (*apikey.APIKey, error)
- func (s *Service) DeleteApiKey(ctx context.Context, cmd *apikey.DeleteCommand) error
- func (s *Service) GetAPIKeyByHash(ctx context.Context, hash string) (*apikey.APIKey, error)
- func (s *Service) GetAPIKeys(ctx context.Context, query *apikey.GetApiKeysQuery) ([]*apikey.APIKey, error)
- func (s *Service) GetAllAPIKeys(ctx context.Context, orgID int64) ([]*apikey.APIKey, error)
- func (s *Service) GetApiKeyById(ctx context.Context, query *apikey.GetByIDQuery) (*apikey.APIKey, error)
- func (s *Service) GetApiKeyByName(ctx context.Context, query *apikey.GetByNameQuery) (*apikey.APIKey, error)
- func (s *Service) IsDisabled(ctx context.Context, orgID int64) (bool, error)
- func (s *Service) UpdateAPIKeyLastUsedDate(ctx context.Context, tokenID int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { ExpectedError error ExpectedBool bool ExpectedAPIKeys []*apikey.APIKey ExpectedAPIKey *apikey.APIKey }
func (*Service) DeleteApiKey ¶
func (*Service) GetAPIKeyByHash ¶
func (*Service) GetAPIKeys ¶
func (*Service) GetAllAPIKeys ¶
func (*Service) GetApiKeyById ¶
func (*Service) GetApiKeyByName ¶
func (*Service) IsDisabled ¶
Click to show internal directories.
Click to hide internal directories.