Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGrpcServer, NewHttpServer)
ProviderSet is server providers.
Functions ¶
func NewGrpcServer ¶
func NewGrpcServer(c *config.Config, svc *svc.ServiceContext, handler *handlers.HelloGrpcHandler, ) *zrpc.RpcServer
func NewHttpServer ¶
Types ¶
type AppServer ¶
type AppServer struct { SvcCtx *svc.ServiceContext HTTPServer *http.Server GrpcServer *zrpc.RpcServer HelloService *service.HelloService }
Click to show internal directories.
Click to hide internal directories.