Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmptyRouter ¶
type EmptyRouter struct {
DefaultPolicy Policy
}
func (*EmptyRouter) RouteRequest ¶
func (r *EmptyRouter) RouteRequest(req *protocol.Request) (Policy, error)
type GeoRouter ¶ added in v0.0.17
type GeoRouter struct { Router // contains filtered or unexported fields }
func NewGeoRouter ¶ added in v0.0.17
func (*GeoRouter) LoadGeoData ¶ added in v0.0.17
type ListRouter ¶
type ListRouter struct { Router // contains filtered or unexported fields }
func NewListRouter ¶
func (*ListRouter) LoadList ¶
func (r *ListRouter) LoadList(data []byte) error
func (*ListRouter) RouteRequest ¶
func (r *ListRouter) RouteRequest(req *protocol.Request) (Policy, error)
type MixedRouter ¶
type MixedRouter struct {
// contains filtered or unexported fields
}
func (*MixedRouter) RouteRequest ¶
func (r *MixedRouter) RouteRequest(req *protocol.Request) (Policy, error)
Click to show internal directories.
Click to hide internal directories.