Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `env:"REST_SERVER_HOST,required"` Port int `env:"REST_SERVER_PORT" envDefault:"8080"` ReadTimeout time.Duration `env:"REST_SERVER_READ_TIMEOUT,required"` WriteTimeout time.Duration `env:"REST_SERVER_WRITE_TIMEOUT,required"` EnableCors bool `env:"REST_ENABLE_CORS" envDefault:"false"` BodyLimit string `env:"REST_BODY_LIMIT" envDefault:"8K"` }
func (*Config) ToServerConfig ¶
func (c *Config) ToServerConfig() *serverConfig
Click to show internal directories.
Click to hide internal directories.