repository

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 6 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) 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