Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cookie ¶
type Cookie struct {
Name string `json:"name"`
Value string `json:"value"`
Path string `json:"path"` // optional
Domain string `json:"domain"` // optional
Expires time.Time `json:"expires"` // optional
RawExpires string `json:"rawExpires"` // for reading cookies only
// MaxAge=0 means no 'Max-Age' attribute specified.
// MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'
// MaxAge>0 means Max-Age attribute present and given in seconds
MaxAge int `json:"maxAge"`
Secure bool `json:"secure"`
HttpOnly bool `json:"httpOnly"`
SameSite SameSite `json:"sameSite"`
Raw string `json:"raw"`
Unparsed []string `json:"unparsed"` // Raw text of unparsed attribute-value pairs
}
struct taking from net/http package
type CueMatcher ¶
type CueMatcher[T any] struct { MatchExpression string `json:"match"` Value *T `json:"value"` // pointers allows a match value to be missing }
func (CueMatcher[T]) GetValue ¶
func (m CueMatcher[T]) GetValue() *T
type Expectation ¶
type Expectation struct {
Priority int `json:"priority"`
Request Request `json:"request"`
Response Response `json:"response"`
Callback *Callback `json:"callback"`
// MatchRules MatchRules `json:"-"`
ExpectationType ExpectationType `json:"-"`
}
type ExpectationError ¶
type ExpectationError struct {
Expectation
ExpectationFieldErrors []ExpectationFieldError
}
func (ExpectationError) Error ¶
func (e ExpectationError) Error() string
type ExpectationFieldError ¶
type ExpectationType ¶
type ExpectationType string
const ( Default ExpectationType = "DEFAULT" Custom ExpectationType = "CUSTOM" )
type Expectations ¶
type Expectations struct {
Expectations []Expectation `json:"expectations"`
}
type Request ¶
type RequestParameters ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.