grpcbooksserver

package
v0.0.0-...-ba4ce30 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	proto.UnimplementedBookServiceServer
	// contains filtered or unexported fields
}

func NewApp

func NewApp() *App

func (*App) AddBook

func (a *App) AddBook(_ context.Context, req *proto.Book) (*proto.AddBookResponse, error)

func (*App) GetBook

func (a *App) GetBook(_ context.Context, req *proto.GetBookRequest) (*proto.Book, error)

func (*App) ListBooks

func (a *App) ListBooks(ctx context.Context, _ *proto.Empty) (*proto.ListBooksRespose, error)

func (*App) RemoveBook

func (*App) Shutdown

func (a *App) Shutdown()

func (*App) Start

func (a *App) Start()

func (*App) UpdateBook

func (a *App) UpdateBook(_ context.Context, req *proto.Book) (*proto.UpdateBookResponse, error)

Jump to

Keyboard shortcuts

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