Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadAndSetServerConfig ¶
Types ¶
type HTTP ¶
type HTTP struct { Port uint16 `env:"PORT" toml:"port"` IdleTimeout ltoml.Duration `env:"IDLE_TIMEOUT" toml:"idle-timeout"` WriteTimeout ltoml.Duration `env:"WRITE_TIMEOUT" toml:"write-timeout"` ReadTimeout ltoml.Duration `env:"READ_TIMEOUT" toml:"read-timeout"` }
HTTP represents an HTTP level configuration of server.
type Server ¶
type Server struct { Migration bool `envPrefix:"LINSIGHT_MIGRATION" toml:"migration"` Database *Database `envPrefix:"LINSIGHT_DATABASE_" toml:"database"` HTTP *HTTP `envPrefix:"LINSIGHT_HTTP_" toml:"http"` Cookie *Cookie `envPrefix:"LINSIGHT_COOKIE_" toml:"cookie"` Provisioning string `envPrefix:"LINSIGHT_PROVISIONING" toml:"provisioning"` Logger *logger.Setting `envPrefix:"LINSIGHT_LOGGER_" toml:"logger"` }
func NewDefaultServer ¶
func NewDefaultServer() *Server
Click to show internal directories.
Click to hide internal directories.