Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewHTTPServer, NewGRPCServer, NewRegistrar)
ProviderSet is server providers.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(c *conf.Server, greeter *service.TableService, rowsService *service.RowsService, logger log.Logger) *grpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
func NewHTTPServer(c *conf.Server, tableService *service.TableService, rowsService *service.RowsService, pingService *service.PingService, logger log.Logger) *http.Server
NewHTTPServer new a HTTP server.
func NewRegistrar ¶
func NewRegistrar(sc []constant.ServerConfig, cc constant.ClientConfig) registry.Registrar
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.