postgres

package
v0.0.0-...-247c3a5 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT 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 NewUserStorage

func NewUserStorage(db *sqlx.DB) *Storage

func (*Storage) Get

func (s *Storage) Get(ctx context.Context, id userPkg.ID) (*userPkg.User, error)

func (*Storage) GetDailyStats

func (s *Storage) GetDailyStats(ctx context.Context, duration time.Duration) ([]*userPkg.Stats, error)

func (*Storage) Upsert

func (s *Storage) Upsert(ctx context.Context, u *userPkg.User) error

Jump to

Keyboard shortcuts

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