Documentation ¶
Index ¶
- func Min(x, y int) int
- type Backend
- func (b *Backend) CreateBook(ctx context.Context, request *protos.CreateBookRequest) (*protos.Book, error)
- func (b *Backend) CreateShelf(ctx context.Context, request *protos.CreateShelfRequest) (*protos.Shelf, error)
- func (b *Backend) DeleteBook(ctx context.Context, request *protos.DeleteBookRequest) (*emptypb.Empty, error)
- func (b *Backend) DeleteShelf(ctx context.Context, request *protos.DeleteShelfRequest) (*emptypb.Empty, error)
- func (b *Backend) GetBook(ctx context.Context, request *protos.GetBookRequest) (*protos.Book, error)
- func (b *Backend) GetShelf(ctx context.Context, request *protos.GetShelfRequest) (*protos.Shelf, error)
- func (b *Backend) ListBooks(ctx context.Context, request *protos.ListBooksRequest) (*protos.ListBooksResponse, error)
- func (b *Backend) ListShelves(ctx context.Context, request *protos.ListShelvesRequest) (*protos.ListShelvesResponse, error)
- func (b *Backend) MergeShelves(ctx context.Context, request *protos.MergeShelvesRequest) (*protos.Shelf, error)
- func (b *Backend) MoveBook(ctx context.Context, request *protos.MoveBookRequest) (*protos.Book, error)
- func (b *Backend) UpdateBook(ctx context.Context, request *protos.UpdateBookRequest) (*protos.Book, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend implements the protobuf interface
func (*Backend) CreateBook ¶
func (*Backend) CreateShelf ¶
func (*Backend) DeleteBook ¶
func (*Backend) DeleteShelf ¶
func (*Backend) ListBooks ¶
func (b *Backend) ListBooks(ctx context.Context, request *protos.ListBooksRequest) (*protos.ListBooksResponse, error)
func (*Backend) ListShelves ¶
func (b *Backend) ListShelves(ctx context.Context, request *protos.ListShelvesRequest) (*protos.ListShelvesResponse, error)
func (*Backend) MergeShelves ¶
func (*Backend) UpdateBook ¶
Click to show internal directories.
Click to hide internal directories.