store

package
v0.0.0-...-955412f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 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 Postgres

type Postgres struct {
	DB *sqlx.DB
}

func NewPostgres

func NewPostgres(cfg *config.Config) (*Postgres, error)

func (*Postgres) Delete

func (psql *Postgres) Delete(username string, chatId int) error

func (*Postgres) GetAll

func (psql *Postgres) GetAll(chatId int) (*[]entity.ChatUser, error)

func (*Postgres) Insert

func (psql *Postgres) Insert(username string, chatId int) error

Jump to

Keyboard shortcuts

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