Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpServer ¶
Types ¶
type Server ¶
type Server struct {
Http internalModels.Server
// contains filtered or unexported fields
}
type ServerConfig ¶ added in v0.2.0
type ServerConfig struct {
Hostname string `env:"HOSTNAME,required"`
Http struct {
Enabled bool `env:"HTTP_ENABLED,default=True"`
Port int `env:"HTTP_PORT,default=8080"`
}
}
func ParseServerConfiguration ¶ added in v0.2.0
func ParseServerConfiguration(ctx context.Context) *ServerConfig
Click to show internal directories.
Click to hide internal directories.