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: 7 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) Fetch

func (db *DB) Fetch(userID int64) (model.User, error)

func (*DB) FetchByUsername

func (db *DB) FetchByUsername(username string) (model.User, error)

func (*DB) Store

func (db *DB) Store(m model.User) error

Jump to

Keyboard shortcuts

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