Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
ServeConfig ServeConfig `json:"serve" yaml:"serve"`
LoggingConfig LoggingConfig `json:"logging" yaml:"logging"`
}
type LoggingConfig ¶
type ServeConfig ¶
type ServeConfig struct {
BaseUrl string `json:"base_url" yaml:"base_url"`
Port int `json:"port" yaml:"port"`
Cors struct {
Enabled bool `json:"enabled" yaml:"enabled"`
AllowOrigins []string `json:"allowed_origins" yaml:"allowed_origins"`
AllowedMethods []string `json:"allowed_methods" yaml:"allowed_methods"`
AllowHeaders []string `json:"allow_headers" yaml:"allow_headers"`
ExposeHeaders []string `json:"expose_headers" yaml:"expose_headers"`
AllowCredentials bool `json:"allow_credentials" yaml:"allow_credentials"`
} `json:"cors" yaml:"cors"`
Timeout time.Duration `json:"timeout" yaml:"timeout"`
}
Click to show internal directories.
Click to hide internal directories.