apikey

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiKeyApp

type ApiKeyApp struct {
	Config     config.Config
	Logger     zerolog.Logger
	ApiKeyPers domain.ApiKeyPers
}

func NewApiKeyApp

func NewApiKeyApp(config config.Config, logger zerolog.Logger, apiKeyPers domain.ApiKeyPers) *ApiKeyApp

func (*ApiKeyApp) AdminDeleteApiKey

func (app *ApiKeyApp) AdminDeleteApiKey(apiKeyId string) error

AdminDeleteApiKey deletes an API key without ownership check (admin only)

func (*ApiKeyApp) CreateApiKey

func (app *ApiKeyApp) CreateApiKey(input dto.CreateApiKeyInput) (*dto.CreateApiKeyOutput, error)

func (*ApiKeyApp) DeleteApiKey

func (app *ApiKeyApp) DeleteApiKey(input dto.DeleteApiKeyInput) error

func (*ApiKeyApp) GetAllApiKeys

func (app *ApiKeyApp) GetAllApiKeys(limit, offset int) ([]domain.ApiKey, int64, error)

GetAllApiKeys returns all API keys with pagination (admin only)

func (*ApiKeyApp) ListApiKeys

func (app *ApiKeyApp) ListApiKeys(input dto.ListApiKeysInput) (*dto.ListApiKeysOutput, error)

func (*ApiKeyApp) UpdateApiKey

func (app *ApiKeyApp) UpdateApiKey(input dto.UpdateApiKeyInput) error

func (*ApiKeyApp) ValidateApiKey

func (app *ApiKeyApp) ValidateApiKey(input dto.ValidateApiKeyInput) (*dto.ValidateApiKeyOutput, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL