Documentation ¶ Index ¶ Variables type Database func Open(path string) (*Database, error) func (d *Database) AddBooks(books []*model.Book, partial bool) error func (d *Database) Close() error func (d *Database) GetBookById(id string) (*model.Book, error) Constants ¶ This section is empty. Variables ¶ View Source var BucketName = []byte("Books") Functions ¶ This section is empty. Types ¶ type Database ¶ type Database struct { storer.BookStorer // contains filtered or unexported fields } func Open ¶ func Open(path string) (*Database, error) func (*Database) AddBooks ¶ func (d *Database) AddBooks(books []*model.Book, partial bool) error func (*Database) Close ¶ func (d *Database) Close() error func (*Database) GetBookById ¶ func (d *Database) GetBookById(id string) (*model.Book, error) Source Files ¶ View all Source files store.go Click to show internal directories. Click to hide internal directories.