Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SnapshotRouter ¶
type SnapshotRouter struct { RuleGroups []spec.RuleGroup MatchStrategy spec.SnapshotMatchFunc }
func NewSnapshotRouter ¶
func NewSnapshotRouter() *SnapshotRouter
func (*SnapshotRouter) Match ¶
func (s *SnapshotRouter) Match(req *http.Request) (ref *spec.SnapshotRef, err error)
func (*SnapshotRouter) Register ¶
func (s *SnapshotRouter) Register(ref *spec.SnapshotRef, rules ...spec.MatchRule) spec.SnapshotRouter
Click to show internal directories.
Click to hide internal directories.