postgres

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

Store is a PostgreSQL-backed implementation of auth.UserStore.

func NewStore

func NewStore(pool *pgxpool.Pool) *Store

NewStore returns a new PostgreSQL user store.

func (*Store) Create

func (s *Store) Create(ctx context.Context, user *auth.User) error

func (*Store) GetByEmail

func (s *Store) GetByEmail(ctx context.Context, email string) (*auth.User, error)

func (*Store) GetByID

func (s *Store) GetByID(ctx context.Context, id string) (*auth.User, error)

func (*Store) List

func (s *Store) List(ctx context.Context) ([]auth.User, error)

func (*Store) UpdateRole

func (s *Store) UpdateRole(ctx context.Context, id, role string) error

Jump to

Keyboard shortcuts

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