Documentation ¶
Index ¶
- Variables
- func NewGRPCServer(c *config.Config, srv *service.GenDataService, mws []middleware.Middleware, ...) *tgrpc.Server
- func NewHTTPServer(c *config.Config, srv *service.GenDataService, mws []middleware.Middleware, ...) *thttp.Server
- func NewMiddlewares(c *config.Config, logger log.Logger, limiter ratelimit.Limiter) []middleware.Middleware
- func NewMux(c *config.Config) cmux.CMux
- func NewRateLimiter(c *config.Config) ratelimit.Limiter
- func NewTLS(c *config.Config) *tls.Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ProviderSet is server providers. ProviderSet = wire.NewSet( NewRateLimiter, NewMux, NewTLS, NewMiddlewares, NewGRPCServer, NewHTTPServer, ) )
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer( c *config.Config, srv *service.GenDataService, mws []middleware.Middleware, mux cmux.CMux, logger log.Logger, tlsCfg *tls.Config, ) *tgrpc.Server
NewGRPCServer new a gRPC server.
func NewHTTPServer ¶
func NewHTTPServer( c *config.Config, srv *service.GenDataService, mws []middleware.Middleware, mux cmux.CMux, logger log.Logger, tlsCfg *tls.Config, ) *thttp.Server
NewHTTPServer new as HTTP server.
func NewMiddlewares ¶
func NewMiddlewares( c *config.Config, logger log.Logger, limiter ratelimit.Limiter, ) []middleware.Middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.