Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DatabasePath string
}
Config specifies configuration parsed for Caddyfile
type GeoIP ¶
type GeoIP struct { DBHandler *maxminddb.Reader Config Config }
GeoIP represents a middleware instance
func (GeoIP) CaddyModule ¶
func (GeoIP) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*GeoIP) UnmarshalCaddyfile ¶
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
type GeoIPFilter ¶
type GeoIPFilter struct { DBHandler *maxminddb.Reader Config Config }
GeoIP represents a middleware instance
func (GeoIPFilter) CaddyModule ¶
func (GeoIPFilter) CaddyModule() caddy.ModuleInfo
CaddyModule returns the Caddy module information.
func (*GeoIPFilter) Provision ¶
func (g *GeoIPFilter) Provision(ctx caddy.Context) error
Provision implements caddy.Provisioner.
func (*GeoIPFilter) UnmarshalCaddyfile ¶
func (g *GeoIPFilter) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
func (*GeoIPFilter) Validate ¶
func (g *GeoIPFilter) Validate() error
Validate implements caddy.Validator.
Click to show internal directories.
Click to hide internal directories.