Documentation ¶
Index ¶
- Variables
- func QuestionStream(name string, qtype uint16) (r *dns.Msg, rtt time.Duration, err error)
- type DNSCall
- type Engine
- type Option
- type OptionsFunc
- func WithDNSAddr(addr string) OptionsFunc
- func WithDNSHandle(dnsHandle *Engine) OptionsFunc
- func WithHTTPAPIAddr(httpAPIAddr string) OptionsFunc
- func WithHTTPDNSAddr(httpDNSAddr string) OptionsFunc
- func WithHttpAPIHandle(httpAPIHandle *gin.Engine) OptionsFunc
- func WithHttpDNSHandle(httpDNSHandle *gin.Engine) OptionsFunc
- func WithTCPAddr(tcpAddr string) OptionsFunc
- func WithUDPAddr(udpAddr string) OptionsFunc
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotConfigUpstream = errors.New("not configuration upstream")
ErrNotConfigUpstream not config upstream
Functions ¶
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine dns engine
type OptionsFunc ¶
type OptionsFunc func(c *Option)
OptionsFunc option func
func WithDNSAddr ¶
func WithDNSAddr(addr string) OptionsFunc
WithDNSAddr option set tcp and udp Addr
func WithDNSHandle ¶
func WithDNSHandle(dnsHandle *Engine) OptionsFunc
WithDNSHandle option set dnsHandle
func WithHTTPAPIAddr ¶
func WithHTTPAPIAddr(httpAPIAddr string) OptionsFunc
WithHTTPAPIAddr option set httpAPIAddr
func WithHTTPDNSAddr ¶
func WithHTTPDNSAddr(httpDNSAddr string) OptionsFunc
WithHTTPDNSAddr option set httpDNSAddr
func WithHttpAPIHandle ¶
func WithHttpAPIHandle(httpAPIHandle *gin.Engine) OptionsFunc
WithHttpAPIHandle option set httpAPIHandle
func WithHttpDNSHandle ¶
func WithHttpDNSHandle(httpDNSHandle *gin.Engine) OptionsFunc
WithHttpDNSHandle option set httpDNSHandle
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server server
func (Server) ListenAndServe ¶
ListenAndServe listen all serve
Click to show internal directories.
Click to hide internal directories.