Documentation ¶
Index ¶
- type BookGRPCHandler
- func (handler *BookGRPCHandler) Destroy(ctx context.Context, model *pb.BookIDModel) (*pb.BookBoolResponse, error)
- func (handler *BookGRPCHandler) Fetch(ctx context.Context, model *pb.BookIDModel) (*pb.BookRowsResponse, error)
- func (handler *BookGRPCHandler) Show(ctx context.Context, model *pb.BookIDModel) (*pb.BookRowResponse, error)
- func (handler *BookGRPCHandler) Store(ctx context.Context, request *pb.BookAddRequest) (*pb.BookBoolResponse, error)
- func (handler *BookGRPCHandler) Update(ctx context.Context, model *pb.BookModel) (*pb.BookBoolResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookGRPCHandler ¶
type BookGRPCHandler struct { pb.UnimplementedBookGRPCHandlerServer Svc contract.IBookService }
func NewBookGRPCHandler ¶
func NewBookGRPCHandler(service contract.IBookService) *BookGRPCHandler
func (*BookGRPCHandler) Destroy ¶
func (handler *BookGRPCHandler) Destroy( ctx context.Context, model *pb.BookIDModel, ) (*pb.BookBoolResponse, error)
func (*BookGRPCHandler) Fetch ¶
func (handler *BookGRPCHandler) Fetch( ctx context.Context, model *pb.BookIDModel, ) (*pb.BookRowsResponse, error)
func (*BookGRPCHandler) Show ¶
func (handler *BookGRPCHandler) Show( ctx context.Context, model *pb.BookIDModel, ) (*pb.BookRowResponse, error)
func (*BookGRPCHandler) Store ¶
func (handler *BookGRPCHandler) Store( ctx context.Context, request *pb.BookAddRequest, ) (*pb.BookBoolResponse, error)
func (*BookGRPCHandler) Update ¶
func (handler *BookGRPCHandler) Update( ctx context.Context, model *pb.BookModel, ) (*pb.BookBoolResponse, error)
Click to show internal directories.
Click to hide internal directories.