Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSetServer = wire.NewSet(NewGRPCServer, NewHTTPServer, RegisterService)
ProviderSetServer is server providers.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(bc *rabbitconf.Bootstrap) *grpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
func NewHTTPServer(bc *rabbitconf.Bootstrap) *http.Server
NewHTTPServer new an HTTP server.
Types ¶
type HeartbeatServer ¶ added in v1.1.0
type HeartbeatServer struct {
// contains filtered or unexported fields
}
HeartbeatServer 心跳包服务
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server 服务
func RegisterService ¶
func RegisterService( bc *rabbitconf.Bootstrap, data *data.Data, rpcSrv *grpc.Server, httpSrv *http.Server, configService *service.ConfigService, hookService *service.HookService, healthService *service.HealthService, ) *Server
RegisterService 注册服务
func (*Server) GetHTTPServer ¶
GetHTTPServer 获取http server
func (*Server) GetRPCServer ¶
GetRPCServer 获取rpc server
Click to show internal directories.
Click to hide internal directories.