storage

package
v0.0.0-...-023d5f2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 7 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 *sqlx.DB) *Storage

func (*Storage) DeleteUser

func (s *Storage) DeleteUser(ctx context.Context, id string) error

func (*Storage) InsertUser

func (s *Storage) InsertUser(ctx context.Context, u entity.User) (entity.User, error)

func (*Storage) UpdateUser

func (s *Storage) UpdateUser(ctx context.Context, id string, u entity.User) (entity.User, error)

func (*Storage) UserByID

func (s *Storage) UserByID(ctx context.Context, id string) (entity.User, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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