Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("GrpcHandler", fx.Provide(NewGrpcHandler), )
Functions ¶
func RegisterGrpcHandler ¶
func RegisterGrpcHandler(g *grpc.Server, grpcHandler *GrpcHandler)
Types ¶
type GrpcHandler ¶
type GrpcHandler struct {
protouser.UnimplementedUserServiceServer
// contains filtered or unexported fields
}
func NewGrpcHandler ¶
func NewGrpcHandler(logger logging.Logger, service service.IUserService) *GrpcHandler
func (*GrpcHandler) CreateUser ¶
func (h *GrpcHandler) CreateUser(ctx context.Context, req *protouser.CreateUserRequest) (*emptypb.Empty, error)
func (*GrpcHandler) GetUser ¶
func (h *GrpcHandler) GetUser(ctx context.Context, req *protouser.GetUserRequest) (*protouser.GetUserResponse, error)
Click to show internal directories.
Click to hide internal directories.