postgresql

package
v0.0.0-...-9067cee Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: GPL-3.0 Imports: 4 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 LoadDatabase

func LoadDatabase(ctx context.Context) (*Postgres, error)

func (*Postgres) Close

func (pg *Postgres) Close()

func (*Postgres) CreateUser

func (pg *Postgres) CreateUser(ctx context.Context, wa string, n string, cid string) error

func (*Postgres) DeleteUser

func (pg *Postgres) DeleteUser(ctx context.Context, u string) error

func (*Postgres) GetUser

func (pg *Postgres) GetUser(ctx context.Context, u string) (User, error)

func (*Postgres) ModifyUser

func (pg *Postgres) ModifyUser(ctx context.Context, u string, k string, nv string) error

func (*Postgres) Ping

func (pg *Postgres) Ping(ctx context.Context) error

type User

type User struct {
	Address  string
	Nickname string
	ID       string
}

Jump to

Keyboard shortcuts

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