repository

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAPIKeyRepo

func NewAPIKeyRepo(connpool *pgxpool.Pool) domain.APIKeyRepository

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func (*Repository) CreateAPIKey

func (r *Repository) CreateAPIKey(ctx context.Context, apiKey *domain.APIKeyCreate) (*domain.APIKey, error)

func (*Repository) GetAPIKeyByValue added in v1.2.0

func (r *Repository) GetAPIKeyByValue(ctx context.Context, key string) (*domain.APIKey, error)

func (*Repository) RevokeAPIKey

func (r *Repository) RevokeAPIKey(ctx context.Context, publicID string) error

Jump to

Keyboard shortcuts

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