storage

package
v0.0.0-...-3c84259 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: Apache-2.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 Storage

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

func New

func New(db *pgxpool.Pool) *Storage

func (*Storage) Create

func (x *Storage) Create(u *us.User) (id uuid.UUID, err error)

func (*Storage) Delete

func (x *Storage) Delete(id uuid.UUID) error

func (*Storage) GetList

func (x *Storage) GetList(limit, offset int64, filter string) ([]us.User, error)

func (*Storage) Read

func (x *Storage) Read(id uuid.UUID) (*us.User, error)

func (*Storage) Update

func (x *Storage) Update(id uuid.UUID, u *us.User, fields ...string) error

Jump to

Keyboard shortcuts

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