Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // EnhancedModeMapping is a mapping for EnhancedMode enum EnhancedModeMapping = map[string]EnhancedMode{ NORMAL.String(): NORMAL, FAKEIP.String(): FAKEIP, MAPPING.String(): MAPPING, } )
Functions ¶
func ReCreateServer ¶
Types ¶
type Config ¶
type Config struct {
Main, Fallback []NameServer
IPv6 bool
EnhancedMode EnhancedMode
}
type EnhancedMode ¶
type EnhancedMode int
const ( NORMAL EnhancedMode = iota FAKEIP MAPPING )
func (EnhancedMode) MarshalJSON ¶
func (e EnhancedMode) MarshalJSON() ([]byte, error)
MarshalJSON serialize EnhancedMode with json
func (EnhancedMode) MarshalYAML ¶
func (e EnhancedMode) MarshalYAML() ([]byte, error)
MarshalYAML serialize EnhancedMode with yaml
func (EnhancedMode) String ¶
func (e EnhancedMode) String() string
func (*EnhancedMode) UnmarshalJSON ¶
func (e *EnhancedMode) UnmarshalJSON(data []byte) error
UnmarshalJSON unserialize EnhancedMode with json
func (*EnhancedMode) UnmarshalYAML ¶
func (e *EnhancedMode) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML unserialize EnhancedMode with yaml
type NameServer ¶
Click to show internal directories.
Click to hide internal directories.