Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdguardUpstream ¶
type AdguardUpstream struct {
APIServerURL string `koanf:"api_server_url"`
Login string `koanf:"login"`
Password string `koanf:"password"`
AutoPTR bool `koanf:"auto_ptr"`
}
func (*AdguardUpstream) Validate ¶
func (u *AdguardUpstream) Validate() error
type CloudflareUpstream ¶ added in v0.10.0
func (*CloudflareUpstream) Validate ¶ added in v0.10.0
func (u *CloudflareUpstream) Validate() error
type Listener ¶
type Listener struct {
Kind ListenerKind `koanf:"kind"`
RFC2136 RFC2136Listener `koanf:"rfc2136"`
}
type ListenerKind ¶
type ListenerKind string
const ( ListenerKindNone ListenerKind = "" ListenerKindRFC2136 ListenerKind = "rfc2136" )
func (ListenerKind) MarshalText ¶
func (k ListenerKind) MarshalText() ([]byte, error)
func (*ListenerKind) UnmarshalText ¶
func (k *ListenerKind) UnmarshalText(data []byte) error
type RFC2136Listener ¶
type RFC2136Listener struct {
Addr string `koanf:"addr"`
Nets []string `koanf:"nets"`
Clients []Client `koanf:"clients"`
}
func (*RFC2136Listener) Validate ¶
func (l *RFC2136Listener) Validate() error
type Upstream ¶
type Upstream struct {
Kind UpstreamKind `koanf:"kind"`
Adguard AdguardUpstream `koanf:"adguard"`
Cloudflare CloudflareUpstream `koanf:"cloudflare"`
}
type UpstreamKind ¶
type UpstreamKind string
const ( UpstreamKindNone UpstreamKind = "" UpstreamKindAdGuard UpstreamKind = "adguard" UpstreamKindCloudflare UpstreamKind = "cloudflare" )
func (UpstreamKind) MarshalText ¶
func (k UpstreamKind) MarshalText() ([]byte, error)
func (*UpstreamKind) UnmarshalText ¶
func (k *UpstreamKind) UnmarshalText(data []byte) error
Click to show internal directories.
Click to hide internal directories.