Documentation
¶
Index ¶
- type Endpoint
- type EndpointBuilder
- func (builder *EndpointBuilder) Build() *Endpoint
- func (builder *EndpointBuilder) ContentType(contentType string) *EndpointBuilder
- func (builder *EndpointBuilder) Name(name string) *EndpointBuilder
- func (builder *EndpointBuilder) Port(port uint) *EndpointBuilder
- func (builder *EndpointBuilder) Timeout(timeout time.Duration) *EndpointBuilder
- type ReceiveActionBuilder
- type SendActionBuilder
- type TestActionBuilder
- type TestReceiveActionBuilder
- type TestSendActionBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct {
// contains filtered or unexported fields
}
func (*Endpoint) Receive ¶
func (endpoint *Endpoint) Receive() *ReceiveActionBuilder
func (*Endpoint) Send ¶
func (endpoint *Endpoint) Send() *SendActionBuilder
type EndpointBuilder ¶
type EndpointBuilder struct {
// contains filtered or unexported fields
}
func NewEndpointBuilder ¶
func NewEndpointBuilder() *EndpointBuilder
func (*EndpointBuilder) Build ¶
func (builder *EndpointBuilder) Build() *Endpoint
func (*EndpointBuilder) ContentType ¶
func (builder *EndpointBuilder) ContentType(contentType string) *EndpointBuilder
func (*EndpointBuilder) Name ¶
func (builder *EndpointBuilder) Name(name string) *EndpointBuilder
func (*EndpointBuilder) Port ¶
func (builder *EndpointBuilder) Port(port uint) *EndpointBuilder
func (*EndpointBuilder) Timeout ¶
func (builder *EndpointBuilder) Timeout(timeout time.Duration) *EndpointBuilder
type ReceiveActionBuilder ¶
type ReceiveActionBuilder struct {
// contains filtered or unexported fields
}
ReceiveActionBuilder used to configure a receive action on a server endpoint without the context of a test the method chain will end with the .Message() method which will return an error. The error will be a problem encountered during receiving or a validation error.
func (*ReceiveActionBuilder) Json ¶
func (builder *ReceiveActionBuilder) Json() *ReceiveActionBuilder
func (*ReceiveActionBuilder) Message ¶
func (builder *ReceiveActionBuilder) Message(message *message.RequestMessage) (*http.Request, error)
type SendActionBuilder ¶
type SendActionBuilder struct {
// contains filtered or unexported fields
}
SendActionBuilder used to configure a send action on a server endpoint without the context of a test the method chain will end with the .Message() method which will return an error. The error will be a problem encountered during sending.
func (*SendActionBuilder) Message ¶
func (builder *SendActionBuilder) Message(message *message.ResponseMessage) error
type TestActionBuilder ¶
type TestActionBuilder struct {
// contains filtered or unexported fields
}
TestSendActionBuilder used to initiate a send or receive action on a server endpoint with the context of a test
func (*TestActionBuilder) Receive ¶
func (testBuilder *TestActionBuilder) Receive() *TestReceiveActionBuilder
func (*TestActionBuilder) Send ¶
func (testBuilder *TestActionBuilder) Send() *TestSendActionBuilder
type TestReceiveActionBuilder ¶
type TestReceiveActionBuilder struct { ReceiveActionBuilder // contains filtered or unexported fields }
TestReceiveActionBuilder used to configure a receive action on a server endpoint with the context of a test the method chain will end with the .Message() method which will not return anything. Any error encountered during receiving or validating will fail the test by calling t.Error().
func (*TestReceiveActionBuilder) Json ¶
func (testBuilder *TestReceiveActionBuilder) Json() *TestReceiveActionBuilder
func (*TestReceiveActionBuilder) Message ¶
func (testBuilder *TestReceiveActionBuilder) Message(message *message.RequestMessage)
type TestSendActionBuilder ¶
type TestSendActionBuilder struct { SendActionBuilder // contains filtered or unexported fields }
TestSendActionBuilder used to configure a send action on a server endpoint with the context of a test the method chain will end with the .Message() method which will not return anything. Any error encountered during sending will fail the test by calling t.Error().
func (*TestSendActionBuilder) Message ¶
func (testBuilder *TestSendActionBuilder) Message(message *message.ResponseMessage)