Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct {
// contains filtered or unexported fields
}
Dispatcher represents a dns query dispatcher
func Init ¶
func Init(c *config.Config) (*Dispatcher, error)
Init inits a dispatcher from configuration
func (*Dispatcher) ServeDNS ¶
func (d *Dispatcher) ServeDNS(ctx context.Context, qCtx *handler.Context, w server.ResponseWriter)
func (*Dispatcher) StartServer ¶
func (d *Dispatcher) StartServer() error
StartServer starts mosdns. Will always return a non-nil err.
Directories ¶
Path | Synopsis |
---|---|
logger for the whole dispatcher package
|
logger for the whole dispatcher package |
matcher
|
|
Click to show internal directories.
Click to hide internal directories.