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
Click to show internal directories.
Click to hide internal directories.