Documentation ¶
Overview ¶
Package accessmw contains the access middleware of the AdGuard DNS server. It filters out the domain scanners and other requests by specified AdBlock rules and IP subnets.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config is the configuration structure for the access middleware. All fields must be non-nil.
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
Middleware is the access middleware of the AdGuard DNS server.
func New ¶
func New(c *Config) (mw *Middleware)
New returns a new access middleware. c must not be nil.
func (*Middleware) Wrap ¶
func (mw *Middleware) Wrap(next dnsserver.Handler) (wrapped dnsserver.Handler)
Wrap implements the dnsserver.Middleware interface for *Middleware
Click to show internal directories.
Click to hide internal directories.