match

package
v0.0.0-...-e246948 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MatchedType

type MatchedType int
const (
	MatchedTypeNone     MatchedType = 0
	MatchedTypeMetaData MatchedType = 1
	MatchedTypeBody     MatchedType = 2
)

type Matcher

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

func NewMatcher

func NewMatcher(svcCtx *svc.ServiceContext) *Matcher

func (*Matcher) Match

func (m *Matcher) Match(ctx context.Context, req Request) (*Response, error)

type Request

type Request struct {
	FullMethodName string
	MD             metadata.MD
	RawReq         []byte
}

type Response

type Response struct {
	MatchType MatchedType
	MockResp  interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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