matcher

package
v0.17.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMatcher

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

func NewJsonMatcher

func NewJsonMatcher(params []*MatchParam) IMatcher

func NewStatusCodeMatcher

func NewStatusCodeMatcher(codes []int) IMatcher

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