postgresql

package
v0.0.0-...-7125030 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductStorage

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

func NewProductStorage

func NewProductStorage(pgPool *pgxpool.Pool) *ProductStorage

func (*ProductStorage) Get

func (*ProductStorage) Set

func (p *ProductStorage) Set(ctx context.Context, product internal.Product) error

type UserStorage

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

func NewUserStorage

func NewUserStorage(pgPool *pgxpool.Pool) *UserStorage

func (*UserStorage) Get

func (u *UserStorage) Get(ctx context.Context, userID internal.UserID) (internal.User, error)

func (*UserStorage) Set

func (u *UserStorage) Set(ctx context.Context, user internal.User) error

Jump to

Keyboard shortcuts

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