Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ServersModule of web base structs ServersModule = module.Module{ {Constructor: newProfileServer}, {Constructor: newMetricServer}, {Constructor: NewAPIServer}, {Constructor: NewMultiServer}, } )
Functions ¶
func NewHTTPServer ¶
NewHTTPServer creates http-server that will be embedded into multi-server
func NewMultiServer ¶
func NewMultiServer(p MultiServerParams) (web.Service, error)
NewMultiServer returns new multi servers group
Types ¶
type APIParams ¶
type APIParams struct { dig.In Config Config `optional:"true"` Logger *zap.Logger Handler http.Handler `optional:"true"` }
APIParams struct
type MetricConfig ¶
type MetricConfig Config
type MultiServerParams ¶
type MultiServerParams struct { dig.In Logger *zap.Logger Servers []web.Service `group:"services"` }
MultiServerParams struct
type PprofConfig ¶
type PprofConfig Config
type ServerResult ¶
type ServerResult = web.ServerResult
func NewAPIServer ¶
func NewAPIServer(p APIParams) (ServerResult, error)
NewAPIServer creates api server by http.Handler from DI container
Click to show internal directories.
Click to hide internal directories.