Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerSet = wire.NewSet( NewHTTPServer, NewGRPCServer, NewRedisConsumerServer, service.ServiceSet, )
ServerSet is server providers. if you want to add rabbitmq, you can append NewRabbitmqConsumerServer in NewSet
Functions ¶
func NewGRPCServer ¶
NewGRPCServer creates a gRPC server if open grpc, then add second param: svc *service.UserServiceServer
func NewHTTPServer ¶
NewHTTPServer creates a HTTP server grpc -> if open http by protocol, then add second param: userSvc userv1.UserServiceHTTPServer
func NewRabbitmqConsumerServer ¶
NewRabbitmqConsumerServer create a redis server
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.