library

package
v0.0.0-...-9d7df78 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package library provides the Library object which implements the library_service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Library

type Library struct {

	// Embed the unimplemented server.
	lspb.UnimplementedLibraryServiceServer
	// contains filtered or unexported fields
}

Library object.

func New

func New(context.Context) (*Library, error)

New creates a new Library object.

func (*Library) CreateBook

func (l *Library) CreateBook(ctx context.Context, req *lspb.CreateBookRequest) (*lspb.Book, error)

CreateBook creates a book in the library. Standard REST method.

func (*Library) GetBook

func (l *Library) GetBook(ctx context.Context, req *lspb.GetBookRequest) (*lspb.Book, error)

GetBook gets a book in the library. Standard REST method.

Jump to

Keyboard shortcuts

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