client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (s Service) CreateClient(ctx context.Context, client store.NewClient) (store.Client, error)

func (Service) DeleteClient

func (s Service) DeleteClient(ctx context.Context, id uuid.UUID) error

func (Service) DeleteClientAPIKey

func (s Service) DeleteClientAPIKey(ctx context.Context, clientID, keyID uuid.UUID) error

func (Service) GenerateAPIKey

func (s Service) GenerateAPIKey(ctx context.Context, newKey store.NewAPIKey) (string, error)

func (Service) GetClient

func (s Service) GetClient(ctx context.Context, id uuid.UUID) (store.Client, error)

func (Service) ListClientAPIKeys

func (s Service) ListClientAPIKeys(ctx context.Context, clientID uuid.UUID) ([]store.APIKey, error)

func (Service) ListClients

func (s Service) ListClients(ctx context.Context) ([]store.Client, error)

func (Service) UpdateClient

func (s Service) UpdateClient(ctx context.Context, id uuid.UUID, patch store.ClientPatch) (store.Client, error)

Jump to

Keyboard shortcuts

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