Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUpstreamsFailed all upstreams are failed or not respond in time. ErrUpstreamsFailed = errors.New("all upstreams failed or not respond in time") )
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher represents a dns query dispatcher
func InitDispatcher ¶
func InitDispatcher(c *config.Config) (*Dispatcher, error)
InitDispatcher inits a dispatcher from configuration
func (*Dispatcher) StartServer ¶ added in v1.3.1
func (d *Dispatcher) StartServer() error
StartServer starts mos-chinadns. Will always return a non-nil err.
Click to show internal directories.
Click to hide internal directories.