matcher

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewJsonMatcher

func NewJsonMatcher(params []*MatchParam) *jsonMatcher

func NewStatusCodeMatcher

func NewStatusCodeMatcher(codes []int) *statusCodeMatcher

Types

type IMatcher

type IMatcher interface {
	Match(ctx http_service.IHttpContext) bool
}

type MatchParam

type MatchParam struct {
	Key   string   `json:"key"`
	Kind  string   `json:"kind" enum:"int,string,bool" default:"string"` // int|string|bool
	Value []string `json:"value"`
}

Jump to

Keyboard shortcuts

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