grpc

package
v0.0.0-...-b2c1117 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 NewGrpcServer() *grpc.Server

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.

Jump to

Keyboard shortcuts

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