handler

package
v0.0.0-...-302b2cd Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 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 BookstoreServer

type BookstoreServer struct {
	repository.Repository
}

BookstoreServer

func NewServer

func NewServer() *BookstoreServer

Create a new Server

func (*BookstoreServer) CreateBook

func (b *BookstoreServer) CreateBook(ctx context.Context, req *api.CreateBookRequest) (*api.Book, error)

CreateBook add book to the repository

func (*BookstoreServer) CreateShelf

func (b *BookstoreServer) CreateShelf(ctx context.Context, req *api.CreateShelfRequest) (*api.Shelf, error)

func (*BookstoreServer) DeleteBook

func (b *BookstoreServer) DeleteBook(ctx context.Context, req *api.DeleteBookRequest) (*empty.Empty, error)

func (*BookstoreServer) DeleteShelf

func (b *BookstoreServer) DeleteShelf(ctx context.Context, req *api.DeleteShelfRequest) (*empty.Empty, error)

func (*BookstoreServer) GetBook

func (b *BookstoreServer) GetBook(ctx context.Context, req *api.GetBookRequest) (*api.Book, error)

GetBook get a book for given Id

func (*BookstoreServer) GetShelf

func (b *BookstoreServer) GetShelf(ctx context.Context, req *api.GetShelfRequest) (*api.Shelf, error)

func (*BookstoreServer) ListBooks

func (*BookstoreServer) ListShelves

Jump to

Keyboard shortcuts

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