grpc

package
v0.0.0-...-3b97d42 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcErrorHandlerInterceptor

type GrpcErrorHandlerInterceptor struct {
	// contains filtered or unexported fields
}

func ProvideGrpcErrorHandlerInterceptor

func ProvideGrpcErrorHandlerInterceptor(logger *zap.Logger) *GrpcErrorHandlerInterceptor

func (*GrpcErrorHandlerInterceptor) Handle

func (interceptor *GrpcErrorHandlerInterceptor) Handle(context context.Context, request interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

type GrpcMeowController

type GrpcMeowController struct {
	proto.UnimplementedMeowServiceServer
	// contains filtered or unexported fields
}

func ProvideGrpcMeowController

func ProvideGrpcMeowController(usecase contract.MeowUsecase) *GrpcMeowController

func (*GrpcMeowController) Create

func (controller *GrpcMeowController) Create(context context.Context, request *proto.CreateMeowRequest) (*proto.CreateMeowResponse, error)

type GrpcServer

type GrpcServer struct {
	// contains filtered or unexported fields
}

func ProvideGrpcServer

func ProvideGrpcServer(
	config *pkg.Config,
	meowController *GrpcMeowController,
	errorHandlerInterceptor *GrpcErrorHandlerInterceptor) *GrpcServer

func (*GrpcServer) Run

func (server *GrpcServer) Run() error

Jump to

Keyboard shortcuts

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