Documentation ¶
Overview ¶
Package memory implements a data store in memory only.
Index ¶
- type Database
- func (db *Database) CreateUser(_ context.Context, user models.User) (err error)
- func (db *Database) GetData() models.Data
- func (db *Database) GetUserByID(_ context.Context, id uint64) (user models.User, err error)
- func (db *Database) SetData(data models.Data)
- func (db *Database) Start(_ context.Context) (runError <-chan error, err error)
- func (db *Database) Stop() (err error)
- func (db *Database) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
Database is the in memory implementation of the database store.
func NewDatabase ¶
NewDatabase creates an empty memory based database.
func (*Database) CreateUser ¶
func (*Database) GetUserByID ¶
Click to show internal directories.
Click to hide internal directories.