Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg *Config, deps *Dependencies) (*server, error)
New constructs a new server with given arguments
Types ¶
type Config ¶
type Config struct {
// Host address to accept requests on
Host string
// Port number to serve HTTP requests on
HTTPPort int
// Port number to serve Metrics requests on
MetricsPort int
// MetricsHost is the bind address for the dedicated /metrics listener.
MetricsHost string
}
Configuration of a server.
type Dependencies ¶
type Dependencies struct {
Log *zerolog.Logger
AppConfig *config.Config
GraphQLProvider graphql.Provider
HTTPProvider http_handlers.Provider
}
Dependencies for a server
Click to show internal directories.
Click to hide internal directories.