postgres

package
v0.0.0-...-8599f36 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host     string
	Port     int
	User     string
	Password string
	Database string
}

type DB

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

func NewDB

func NewDB(c Config) (*DB, error)

func (*DB) FindUser

func (p *DB) FindUser(username string) (*user.User, error)

func (*DB) PutUser

func (p *DB) PutUser(u *user.User) error

Jump to

Keyboard shortcuts

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