mongo

package
v0.0.0-...-d6aee5c Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookDataStore

type BookDataStore struct {
	URL string
}

BookDataStore ...

func (*BookDataStore) AddNewBook

func (store *BookDataStore) AddNewBook(book *model.Book) (*model.Book, error)

AddNewBook ...

func (*BookDataStore) DeleteBookByID

func (store *BookDataStore) DeleteBookByID(id string) error

DeleteBookByID ...

func (*BookDataStore) GetAllBooks

func (store *BookDataStore) GetAllBooks() ([]*model.Book, error)

GetAllBooks ...

func (*BookDataStore) GetBookByID

func (store *BookDataStore) GetBookByID(id string) (*model.Book, error)

GetBookByID ...

func (*BookDataStore) UpdateBookByID

func (store *BookDataStore) UpdateBookByID(id string, book *model.Book) (*model.Book, error)

UpdateBookByID ...

Jump to

Keyboard shortcuts

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