Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ProxyURL string ProxyMethod string Port string LogLevel string AuthorizationSecret string BlockedIps []string AlwaysAllowedIps []string LeakyBucketLimitPerSecond int SoftCapIPRequestsPerMinute int HardCapIPRequestsPerMinute int SlackWebhookURL string SlackChannel string }
Config ...
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy ...
func (*Proxy) HealthCheckHandler ¶
func (p *Proxy) HealthCheckHandler(w http.ResponseWriter, r *http.Request)
HealthCheckHandler ...
func (*Proxy) PingHandler ¶
func (p *Proxy) PingHandler(w http.ResponseWriter, r *http.Request)
PingHandler ...
func (*Proxy) ProxyHandler ¶
func (p *Proxy) ProxyHandler(w http.ResponseWriter, r *http.Request)
ProxyHandler ...
Click to show internal directories.
Click to hide internal directories.