pg

package
v0.0.0-...-c8397cc Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Postgres

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

func New

func New(ctx context.Context, url string, tr trace.Tracer) *Postgres

func (*Postgres) Close

func (p *Postgres) Close()

func (*Postgres) SaveUser

func (p *Postgres) SaveUser(ctx context.Context, username string, passHash []byte) (models.User, error)

func (*Postgres) User

func (p *Postgres) User(ctx context.Context, username string) (models.User, error)

Jump to

Keyboard shortcuts

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