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"`
Port int `json:"port"`
Cors struct {
Enabled bool `json:"enabled"`
AllowOrigins []string `json:"allowed_origins"`
AllowedMethods []string `json:"allowed_methods"`
AllowHeaders []string `json:"allow_headers"`
ExposeHeaders []string `json:"expose_headers"`
AllowCredentials bool `json:"allow_credentials"`
} `json:"cors"`
}
Click to show internal directories.
Click to hide internal directories.