matches

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSMatches

type FSMatches struct {
	Cache map[string]*specs.FS
	// contains filtered or unexported fields
}

FSMatches Object

func NewFSMatches

func NewFSMatches(fsCommandMap map[string]interface{}, cache map[string]*specs.FS) *FSMatches

NewFSMatches create new file system matches instance

func (*FSMatches) Match

func (mr *FSMatches) Match(cmd []string, sb *bytes.Buffer) bool

Match match fs command to specified commands pattern

type RouteMatches

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

RouteMatches Object

func NewRouteMatches

func NewRouteMatches(ValidationRoutes []specs.Routes, router *mux.Router) *RouteMatches

NewRouteMatches create new routes matches instance

func (RouteMatches) Match

func (mr RouteMatches) Match(url, method string) (bool, string)

Match match route to specified api pattern

Jump to

Keyboard shortcuts

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