Documentation
¶
Index ¶
- func NewApiKeyService(config ApiKeyServiceConfig) services.IApiKeyService
- type ApiKeyService
- func (s *ApiKeyService) Create(ctx context.Context, keyType models.ApiKeyType, name string) (string, error)
- func (s *ApiKeyService) Delete(ctx context.Context, name string) error
- func (s *ApiKeyService) GetApiKeyName(ctx context.Context, apiKey string) (string, error)
- func (s *ApiKeyService) GetApiKeyType(ctx context.Context, apiKey string) (models.ApiKeyType, error)
- func (s *ApiKeyService) IsTargetApiKey(ctx context.Context, apiKey string) bool
- func (s *ApiKeyService) IsValidApiKey(ctx context.Context, apiKey string) bool
- func (s *ApiKeyService) ListClientKeys(ctx context.Context) ([]*services.ApiKeyDTO, error)
- type ApiKeyServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApiKeyService ¶
func NewApiKeyService(config ApiKeyServiceConfig) services.IApiKeyService
Types ¶
type ApiKeyService ¶
type ApiKeyService struct {
// contains filtered or unexported fields
}
func (*ApiKeyService) Create ¶ added in v0.52.0
func (s *ApiKeyService) Create(ctx context.Context, keyType models.ApiKeyType, name string) (string, error)
func (*ApiKeyService) Delete ¶ added in v0.52.0
func (s *ApiKeyService) Delete(ctx context.Context, name string) error
func (*ApiKeyService) GetApiKeyName ¶ added in v0.52.0
func (*ApiKeyService) GetApiKeyType ¶ added in v0.52.0
func (s *ApiKeyService) GetApiKeyType(ctx context.Context, apiKey string) (models.ApiKeyType, error)
func (*ApiKeyService) IsTargetApiKey ¶ added in v0.52.0
func (s *ApiKeyService) IsTargetApiKey(ctx context.Context, apiKey string) bool
func (*ApiKeyService) IsValidApiKey ¶
func (s *ApiKeyService) IsValidApiKey(ctx context.Context, apiKey string) bool
func (*ApiKeyService) ListClientKeys ¶
Click to show internal directories.
Click to hide internal directories.