Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRulePriority ¶
GetRulePriority computes the priority for a given rule. The priority is calculated using the length of rule.
func ParseDomains ¶
ParseDomains extract domains from rule.
Types ¶
type Muxer ¶
type Muxer struct {
// contains filtered or unexported fields
}
Muxer handles routing with rules.
func (*Muxer) ServeHTTP ¶
func (m *Muxer) ServeHTTP(rw http.ResponseWriter, req *http.Request)
ServeHTTP forwards the connection to the matching HTTP handler. Serves 404 if no handler is found.
func (*Muxer) SetDefaultHandler ¶
SetDefaultHandler sets the muxer default handler.
Click to show internal directories.
Click to hide internal directories.