postgres

package
v0.0.0-...-20db9b2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 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 Storage

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

func New

func New(cfg *config.Config) (*Storage, error)

func (*Storage) Close

func (s *Storage) Close()

func (*Storage) CreateUser

func (s *Storage) CreateUser(
	ctx context.Context,
	chatID int64,
	user models.User,
) error

func (*Storage) GetUser

func (s *Storage) GetUser(
	ctx context.Context,
	chatID int64,
) (models.User, error)

func (*Storage) RemoveUser

func (s *Storage) RemoveUser(
	ctx context.Context,
	chatID int64,
) error

func (*Storage) UpdateUser

func (s *Storage) UpdateUser(
	ctx context.Context,
	chatID int64,
	user models.User,
) error

Jump to

Keyboard shortcuts

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