Documentation
¶
Index ¶
- func CreateGRPCClient(name string, log *zap.Logger) *grpc.ClientConn
- func CreateGRPCServer(name string, log *zap.Logger) (*grpc.Server, *net.Listener)
- func CreateMongoDB(address string, log *zap.Logger) *mongo.Client
- func HandlePanic(log *zap.Logger)
- func UnmarshalMap(data map[string]interface{}, toValue interface{})
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 ¶
CreateMongoDB creates a mongoDB client
func HandlePanic ¶
HandlePanic is used to handle panic when it occurs in a microservice
func UnmarshalMap ¶
func UnmarshalMap(data map[string]interface{}, toValue interface{})
UnmarshalMap is used to convert map[string]interface{} to a struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.