Documentation ¶
Index ¶
- Variables
- func NewDiscovery(cli *etcdAPI.Client) registry.Discovery
- func NewEtcdClient(c *conf.Registry) *etcdAPI.Client
- func NewGRPCServer(c *conf.Server, webApiService *service.WebApiService, logger log.Logger) *grpc.Server
- func NewHTTPServer(c *conf.Server, ac *conf.Auth, webApiService *service.WebApiService, ...) *http.Server
- func NewRegistrar(cli *etcdAPI.Client) registry.Registrar
- func NewWhiteListMatcher() selector.MatchFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewEtcdClient, NewRegistrar, NewDiscovery, NewGRPCServer, NewHTTPServer)
ProviderSet is server providers.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(c *conf.Server, webApiService *service.WebApiService, logger log.Logger) *grpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
func NewHTTPServer(c *conf.Server, ac *conf.Auth, webApiService *service.WebApiService, logger log.Logger) *http.Server
NewHTTPServer new an HTTP server.
func NewWhiteListMatcher ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.