Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRegexpArray ¶
MakeRegexpArray splits a comma separated list of regexps into an array of Regexp objects.
func MakeRegexpArrayOrDie ¶
MakeRegexpArrayOrDie creates an array of regular expression objects from a string or exits.
Types ¶
type FilterServer ¶
type FilterServer struct { // Only paths that match this regexp will be accepted AcceptPaths []*regexp.Regexp // Paths that match this regexp will be rejected, even if they match the above RejectPaths []*regexp.Regexp // Hosts are required to match this list of regexp AcceptHosts []*regexp.Regexp // Methods that match this regexp are rejected RejectMethods []*regexp.Regexp }
FilterServer rejects requests which don't match one of the specified regular expressions
func (*FilterServer) ServeHTTP ¶
func (f *FilterServer) ServeHTTP(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.