bbolt

package
Version: v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewItemDB

func NewItemDB(db *bolt.DB) db.ItemDB

func NewMonsterDB

func NewMonsterDB(db *bolt.DB) db.MonsterDB

Types

type BreederDB added in v0.4.0

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

func NewBreederDB

func NewBreederDB(db *bolt.DB) *BreederDB

func (*BreederDB) Create added in v0.4.0

func (b *BreederDB) Create(breeder model.Breeder) (model.ID, error)

func (*BreederDB) Delete added in v0.4.0

func (b *BreederDB) Delete(id model.ID) error

func (*BreederDB) Load added in v0.4.0

func (b *BreederDB) Load(id model.ID) (model.Breeder, error)

func (*BreederDB) LoadAll added in v0.4.0

func (b *BreederDB) LoadAll() ([]model.Breeder, error)

func (*BreederDB) LoadPosition added in v0.4.0

func (b *BreederDB) LoadPosition(id model.ID) (model.Vector2D, error)

func (*BreederDB) Save added in v0.4.0

func (b *BreederDB) Save(breeder model.Breeder) error

func (*BreederDB) SavePosition added in v0.4.0

func (b *BreederDB) SavePosition(breederID model.ID, position model.Vector2D) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL