Documentation
¶
Index ¶
- Constants
- func Dns(host string) *net.IP
- func DnsDecoder(urlStr string) (*string, *string, error)
- func Initializer(conf string) bool
- func Lookup(ctype, host, dnsServer string) (*dns.Msg, error)
- func Loop()
- func NewRedisPool(host string, db string) *redis.Pool
- func PingHandler(ctx *web.Context) string
- func ResolveHandler(ctx *web.Context) string
- type AppConfig
- type RedisConf
- type Resp
Constants ¶
View Source
const ( SUCC = 0 FAILED = -1 HTTP = "http://" )
Variables ¶
This section is empty.
Functions ¶
func DnsDecoder ¶
DnsDecoder resolve url's dns
Types ¶
type AppConfig ¶
type AppConfig struct { Redis RedisConf `yaml:"redis"` Logconf string `yaml:"log_config"` Listen string `yaml:"listen"` Port string `yaml:"port"` TTL int `yaml:"ttl"` Dnsservers []string `yaml:"dnsservers"` }
AppConfig Type
Click to show internal directories.
Click to hide internal directories.