auth

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(conn *database.Connection, appender outbox.Appender) *Repository

NewRepository builds the pgx auth repository from the shared connection. Each write commits its config-snapshot change marker in the same transaction via the injected outbox appender.

func (*Repository) Delete

func (r *Repository) Delete(ctx context.Context, gatewayID ids.GatewayID, id ids.AuthID) error

func (*Repository) FindByAPIKeyHash

func (r *Repository) FindByAPIKeyHash(ctx context.Context, keyHash string) (*domain.Auth, error)

func (*Repository) FindByID

func (r *Repository) FindByID(ctx context.Context, id ids.AuthID) (*domain.Auth, error)

func (*Repository) FindByIDs

func (r *Repository) FindByIDs(ctx context.Context, gatewayID ids.GatewayID, authIDs []ids.AuthID) ([]*domain.Auth, error)

func (*Repository) FindEnabledByTypes

func (r *Repository) FindEnabledByTypes(ctx context.Context, types []domain.Type) ([]*domain.Auth, error)

func (*Repository) List

func (r *Repository) List(ctx context.Context, filter domain.ListFilter) ([]*domain.Auth, int, error)

func (*Repository) ListEnabledByGatewayAndType

func (r *Repository) ListEnabledByGatewayAndType(
	ctx context.Context,
	gatewayID ids.GatewayID,
	authType domain.Type,
) ([]*domain.Auth, error)

func (*Repository) Save

func (r *Repository) Save(ctx context.Context, a *domain.Auth) error

func (*Repository) Update

func (r *Repository) Update(ctx context.Context, a *domain.Auth) error

Jump to

Keyboard shortcuts

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