database

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = fmt.Errorf("not found")
)

Functions

This section is empty.

Types

type DB

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

func New

func New(db *database.DB, cache cache.Cache) *DB

func (*DB) Add

func (db *DB) Add(m model.Stat) error

func (*DB) BytesBucket

func (db *DB) BytesBucket(userID int64) []byte

func (*DB) FetchByuserID

func (db *DB) FetchByuserID(userID int64) ([]model.Stat, error)

func (*DB) FetchProfileStat

func (db *DB) FetchProfileStat(userID int64) (model.AggregationStat, error)

func (*DB) FetchRateStat

func (db *DB) FetchRateStat(userID int64) (model.RateStat, error)

func (*DB) SerialBucket

func (db *DB) SerialBucket(userID int64) string

Jump to

Keyboard shortcuts

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