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
Click to show internal directories.
Click to hide internal directories.