Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateImposter(imposter ImposterElement) (map[string]interface{}, error)
- func (c *Client) DeleteAllImposters() (map[string]interface{}, error)
- func (c *Client) DeleteImposter(port int) (map[string]interface{}, error)
- func (c *Client) Logs() ([]Log, error)
- func (c *Client) NumberOfRequests(port int) (int, error)
- type ImposterBuilder
- func (builder *ImposterBuilder) Build() ImposterElement
- func (builder *ImposterBuilder) Mode(mode string) *ImposterBuilder
- func (builder *ImposterBuilder) Name(name string) *ImposterBuilder
- func (builder *ImposterBuilder) Port(port int) *ImposterBuilder
- func (builder *ImposterBuilder) Protocol(protocol string) *ImposterBuilder
- func (builder *ImposterBuilder) RecordRequests(reply bool) *ImposterBuilder
- func (builder *ImposterBuilder) Stubs(stubs ...StubElement) *ImposterBuilder
- type ImposterElement
- type Log
- type StubBuilder
- type StubElement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateImposter ¶
func (c *Client) CreateImposter(imposter ImposterElement) (map[string]interface{}, error)
func (*Client) DeleteAllImposters ¶
func (*Client) DeleteImposter ¶
type ImposterBuilder ¶
type ImposterBuilder struct {
// contains filtered or unexported fields
}
func NewImposterBuilder ¶
func NewImposterBuilder() *ImposterBuilder
func (*ImposterBuilder) Build ¶
func (builder *ImposterBuilder) Build() ImposterElement
func (*ImposterBuilder) Mode ¶
func (builder *ImposterBuilder) Mode(mode string) *ImposterBuilder
func (*ImposterBuilder) Name ¶
func (builder *ImposterBuilder) Name(name string) *ImposterBuilder
func (*ImposterBuilder) Port ¶
func (builder *ImposterBuilder) Port(port int) *ImposterBuilder
func (*ImposterBuilder) Protocol ¶
func (builder *ImposterBuilder) Protocol(protocol string) *ImposterBuilder
func (*ImposterBuilder) RecordRequests ¶
func (builder *ImposterBuilder) RecordRequests(reply bool) *ImposterBuilder
func (*ImposterBuilder) Stubs ¶
func (builder *ImposterBuilder) Stubs(stubs ...StubElement) *ImposterBuilder
type ImposterElement ¶
type StubBuilder ¶
type StubBuilder struct {
// contains filtered or unexported fields
}
func Stub ¶
func Stub() *StubBuilder
func (*StubBuilder) Build ¶
func (builder *StubBuilder) Build() StubElement
func (*StubBuilder) Predicates ¶
func (builder *StubBuilder) Predicates(predicates ...predicates.Predicate) *StubBuilder
func (*StubBuilder) Responses ¶
func (builder *StubBuilder) Responses(responses ...responses.Response) *StubBuilder
type StubElement ¶
type StubElement struct { Responses []responses.Response `json:"responses"` Predicates []predicates.Predicate `json:"predicates"` }
Click to show internal directories.
Click to hide internal directories.