Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Port int64 `config:"port"`
// BaseURI is the base uri of api gateway, which is used to generate the proxy request url
BaseURI string `config:"baseuri"`
//
Backend route.Backend `config:"backend"`
//
Routes []route.Route `config:"routes"`
//
Cache Cache `config:"cache"`
//
Database Database `config:"database"`
//
HealthCheck HealthCheck `config:"healthcheck"`
//
RateLimit RateLimit `config:"rate_limit"`
//
JSONAudit JSONAudit `config:"json_audit"`
//
HTTPCache HTTPCache `config:"http_cache"`
//
IPPolicy IPPolicy `config:"ip_policy"`
//
CORS CORS `config:"cors"`
}
type Database ¶ added in v1.7.2
type Database = route.JSONAuditOutputDatabase
type HTTPCache ¶ added in v1.7.4
HTTPCache uses route.HTTPCache to avoid circular imports (same pattern as RateLimit).
type HealthCheck ¶
type HealthCheck struct {
Outer HealthCheckOuter `config:"outer"`
Inner HealthCheckInner `config:"inner"`
}
type HealthCheckInner ¶
type HealthCheckOuter ¶
type JSONAudit ¶ added in v1.7.1
JSONAudit uses route.JSONAudit to avoid circular imports (same pattern as RateLimit).
Click to show internal directories.
Click to hide internal directories.