Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscordReporter ¶
func NewDiscordReporter ¶
func NewDiscordReporter(botToken string, channel string, geo *Geo) (*DiscordReporter, error)
func (*DiscordReporter) CannotDial ¶
func (r *DiscordReporter) CannotDial(service string, ipaddress string, err error)
func (*DiscordReporter) ReportAccepted ¶
func (r *DiscordReporter) ReportAccepted(service string, ipaddress string)
func (*DiscordReporter) ReportBlocked ¶
func (r *DiscordReporter) ReportBlocked(service string, ipaddress string, rule string)
type Middleware ¶
type Middleware struct { Rule string // contains filtered or unexported fields }
func NewMiddleware ¶
func NewMiddleware(rule string, geo *Geo) (*Middleware, error)
func (*Middleware) Passes ¶
func (m *Middleware) Passes(address string) bool
type Proxy ¶
type Proxy struct { Middleware []Middleware Listen string Upstream string Name string Reporter *DiscordReporter }
func NewProxy ¶
func NewProxy(middleware []Middleware, listen string, upstream string, name string, reporter *DiscordReporter) *Proxy
func (*Proxy) ListenAndServe ¶
type ProxyBooter ¶
type ProxyBooter struct {
Proxies []Proxy
}
func NewProxyBooter ¶
func NewProxyBooter(proxies []Proxy) *ProxyBooter
func (*ProxyBooter) BootAll ¶
func (p *ProxyBooter) BootAll()
Click to show internal directories.
Click to hide internal directories.