grpc

package
v0.0.0-...-a474e13 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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