Documentation ¶
Index ¶
- func InitLogger(l *zap.SugaredLogger)
- func LogInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- func Logger() *zap.SugaredLogger
- func NewGrpcServer() *grpc.Server
- func RecoverInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, ...) (resp interface{}, err error)
- func SetGrpcInterceptor() []grpc.ServerOption
- func StartGargantuaGrpcServer(config *common.ProjectConfig, server *grpc.Server, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitLogger(l *zap.SugaredLogger)
func LogInterceptor ¶
func LogInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
func Logger ¶
func Logger() *zap.SugaredLogger
func NewGrpcServer ¶
func RecoverInterceptor ¶
func RecoverInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
func SetGrpcInterceptor ¶
func SetGrpcInterceptor() []grpc.ServerOption
func StartGargantuaGrpcServer ¶
func StartGargantuaGrpcServer(config *common.ProjectConfig, server *grpc.Server, ctx starter_context.StarterContext) error
StartGargantuaGrpcServer will start a grpc server of gargantua
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.