matcher

package
v0.3.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init matcher

func Load

func Load(apis []ratelimit.Resource)

Load load api resource for matchers

func Match

func Match(path string) (string, bool)

Match match resource via url path

Types

type Exact

type Exact struct {
	// contains filtered or unexported fields
}

type Matcher

type Matcher struct {
	// contains filtered or unexported fields
}

func NewMatcher

func NewMatcher() *Matcher

type PathMatcher

type PathMatcher interface {
	// contains filtered or unexported methods
}

PathMatcher according the url path find APIResource name

type Regex

type Regex struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL