Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allowed ¶
type Allowed struct { IPs []string // static list of allowed IPs - requests from those IPS will be allowed UAs []string // only those user agents' names will be allowed, all other will be rejected Provider AuthProvider // auth provider }
Allowed config (GET, HEAD, OPTIONS requests only)
type AuthProvider ¶
type Cache ¶
type Cache struct { Disabled bool // cache disabled TTL int // cache TTL in minutes Size int // cache size }
Cache config
type Config ¶
type Config struct { Port string // http port LogLevel string // log level SentryDSN string // sentry dsn Healthchecks Healthchecks // healthchecks config Target Target // target config Cache Cache // cache config Allowed Allowed // allowed ips and user agents (GET, HEAD, OPTIONS requests only) Trusted Trusted // trusted ips (PATCH, POST, PUT, DELETE requests) Metrics *echobasicauth.Auth // metrics basic auth }
Config for DRP service
Click to show internal directories.
Click to hide internal directories.