Documentation
¶
Overview ¶
Package standin is the stand-in for a service's HTTP neighbour: it answers what the steps declared, checks the traffic against the neighbour's OpenAPI document and keeps what was sent.
Index ¶
- type Backend
- func (b *Backend) Failures() []string
- func (b *Backend) Hold(method, path string, query ...url.Values)
- func (b *Backend) Release(method, path string, query ...url.Values) error
- func (b *Backend) Reply(method, path string, status int, body any, opts ...Option)
- func (b *Backend) ReplyTo(method, path string, query url.Values, status int, body any, opts ...Option)
- func (b *Backend) Requests(method, path string) []Received
- func (b *Backend) RoundTrip(req *http.Request) (*http.Response, error)
- func (b *Backend) TimeOut(method, path string, query ...url.Values)
- type Option
- type Options
- type Received
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.