Documentation
¶
Index ¶
Constants ¶
View Source
const (
Path = "config/config.yaml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server `yaml:"server"` Log `yaml:"logger"` Authn `yaml:"authn"` Tracer `yaml:"tracer"` Service `yaml:"service"` Database `yaml:"database"` }
Config -
type Database ¶
type Database struct { Engine string `env-required:"true" yaml:"engine"` Database string `yaml:"database"` URI string `yaml:"uri"` MaxOpenConnections int `yaml:"max_open_connections"` }
Database -.
type HTTP ¶
type HTTP struct { Enabled bool `yaml:"enabled"` Port string `env-required:"true" yaml:"port"` TLSConfig TLSConfig `yaml:"tls"` CORSAllowedOrigins []string `yaml:"cors_allowed_origins"` CORSAllowedHeaders []string `yaml:"cors_allowed_headers"` }
HTTP -.
type Service ¶
type Service struct { CircuitBreaker bool `yaml:"circuit_breaker"` ConcurrencyLimit int `yaml:"concurrency_limit"` }
Service -.
Click to show internal directories.
Click to hide internal directories.