Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPFilter ¶
type IPFilter struct {
// contains filtered or unexported fields
}
IPFilter is the IP filter.
func (*IPFilter) AllowHTTPContext ¶
func (f *IPFilter) AllowHTTPContext(ctx context.HTTPContext) bool
AllowHTTPContext is the wrapper of Allow for HTTPContext.
type IPFilters ¶
type IPFilters struct {
// contains filtered or unexported fields
}
IPFilters is the wrapper for multiple IPFilters.
func NewIPfilters ¶
NewIPfilters creates an IPFilters
func (*IPFilters) AllowHTTPContext ¶
func (f *IPFilters) AllowHTTPContext(ctx context.HTTPContext) bool
AllowHTTPContext is the wrapper of Allow for HTTPContext.
type Spec ¶
type Spec struct { BlockByDefault bool `yaml:"blockByDefault" jsonschema:"required"` AllowIPs []string `yaml:"allowIPs" jsonschema:"omitempty,uniqueItems=true,format=ipcidr-array"` BlockIPs []string `yaml:"blockIPs" jsonschema:"omitempty,uniqueItems=true,format=ipcidr-array"` }
Spec describes IPFilter.
Click to show internal directories.
Click to hide internal directories.