Documentation ¶
Index ¶
- type App
- func (a *App) AddBook(_ context.Context, req *proto.Book) (*proto.AddBookResponse, error)
- func (a *App) GetBook(_ context.Context, req *proto.GetBookRequest) (*proto.Book, error)
- func (a *App) ListBooks(ctx context.Context, _ *proto.Empty) (*proto.ListBooksRespose, error)
- func (a *App) RemoveBook(_ context.Context, req *proto.RemoveBookRequest) (*proto.RemoveBookResponse, error)
- func (a *App) Shutdown()
- func (a *App) Start()
- func (a *App) UpdateBook(_ context.Context, req *proto.Book) (*proto.UpdateBookResponse, error)
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 (*App) RemoveBook ¶
func (a *App) RemoveBook(_ context.Context, req *proto.RemoveBookRequest) (*proto.RemoveBookResponse, error)
func (*App) UpdateBook ¶
Click to show internal directories.
Click to hide internal directories.