Documentation
¶
Index ¶
- Variables
- type DB
- func (db *DB) Add(m model.Stat) error
- func (db *DB) BytesBucket(userID int64) []byte
- func (db *DB) FetchByuserID(userID int64) ([]model.Stat, error)
- func (db *DB) FetchProfileStat(userID int64) (model.AggregationStat, error)
- func (db *DB) FetchRateStat(userID int64) (model.RateStat, error)
- func (db *DB) SerialBucket(userID int64) string
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 (*DB) BytesBucket ¶
func (*DB) FetchProfileStat ¶
func (db *DB) FetchProfileStat(userID int64) (model.AggregationStat, error)
func (*DB) SerialBucket ¶
Click to show internal directories.
Click to hide internal directories.