Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGRPCClient ¶
func CreateGRPCClient(name string, log *zap.Logger) *grpc.ClientConn
CreateGRPCClient is used to create a GRPC Service's client
func CreateGRPCServer ¶
CreateGRPCServer is used to create a GRPC server for microservice
func CreateMongoDB ¶ added in v0.0.10
CreateMongoDB creates a mongoDB client
func HandlePanic ¶
HandlePanic is used to handle panic when it occurs in a microservice
Types ¶
type LogInterceptor ¶ added in v0.0.16
type LogInterceptor struct {
// contains filtered or unexported fields
}
LogInterceptor logs all communications
func (LogInterceptor) LogGRPCInterceptor ¶ added in v0.0.16
func (l LogInterceptor) LogGRPCInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
LogGRPCInterceptor logs all grpc communications
Click to show internal directories.
Click to hide internal directories.