Documentation ¶
Index ¶
- type Service
- func (s Service) CreateClient(ctx context.Context, client store.NewClient) (store.Client, error)
- func (s Service) DeleteClient(ctx context.Context, id uuid.UUID) error
- func (s Service) DeleteClientAPIKey(ctx context.Context, clientID, keyID uuid.UUID) error
- func (s Service) GenerateAPIKey(ctx context.Context, newKey store.NewAPIKey) (string, error)
- func (s Service) GetClient(ctx context.Context, id uuid.UUID) (store.Client, error)
- func (s Service) ListClientAPIKeys(ctx context.Context, clientID uuid.UUID) ([]store.APIKey, error)
- func (s Service) ListClients(ctx context.Context) ([]store.Client, error)
- func (s Service) UpdateClient(ctx context.Context, id uuid.UUID, patch store.ClientPatch) (store.Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Repo store.Repository
}
func (Service) CreateClient ¶
func (Service) DeleteClient ¶
func (Service) DeleteClientAPIKey ¶
func (Service) GenerateAPIKey ¶
func (Service) ListClientAPIKeys ¶
func (Service) ListClients ¶
func (Service) UpdateClient ¶
Click to show internal directories.
Click to hide internal directories.