Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MaxmindASN ¶
type MaxmindASN struct { // The path of the MaxMind GeoLite2-ASN.mmd file DbPath string `json:"db_path"` // A list of AllowASOs []string `json:"allow_asos"` DenyASOs []string `json:"deny_asos"` // contains filtered or unexported fields }
Allows to filter requests based on source IP ASO.
func (MaxmindASN) CaddyModule ¶
func (MaxmindASN) CaddyModule() caddy.ModuleInfo
func (*MaxmindASN) Cleanup ¶
func (m *MaxmindASN) Cleanup() error
func (*MaxmindASN) Provision ¶
func (m *MaxmindASN) Provision(ctx caddy.Context) error
func (*MaxmindASN) UnmarshalCaddyfile ¶
func (m *MaxmindASN) UnmarshalCaddyfile(d *caddyfile.Dispenser) error
Click to show internal directories.
Click to hide internal directories.