Documentation
¶
Overview ¶
Package server provides an HTTP server comprised of multiple HTTP services
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Providers = wire.NewSet( ProvideHTTPServer, )
Providers is our wire superset of providers this package offers.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { StartupDeadline time.Duration `json:"startup_deadline" mapstructure:"startup_deadline" toml:"startup_deadline,omitempty"` HTTPPort uint16 `json:"http_port" mapstructure:"http_port" toml:"http_port,omitempty"` Debug bool `json:"debug" mapstructure:"debug" toml:"debug,omitempty"` // contains filtered or unexported fields }
Config describes the settings pertinent to the HTTP serving portion of the service.
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer is our API http server.
func ProvideHTTPServer ¶
func ProvideHTTPServer( ctx context.Context, serverSettings Config, metricsHandler metrics.InstrumentationHandler, authService types.AuthService, usersService types.UserDataService, accountsService types.AccountDataService, apiClientsService types.APIClientDataService, websocketsService types.WebsocketDataService, itemsService types.ItemDataService, webhooksService types.WebhookDataService, adminService types.AdminService, frontendService frontend.Service, logger logging.Logger, encoder encoding.ServerEncoderDecoder, router routing.Router, ) (*HTTPServer, error)
ProvideHTTPServer builds a new HTTPServer instance.
Click to show internal directories.
Click to hide internal directories.