Documentation
¶
Index ¶
- Constants
- type ChildMessage
- type Pipe
- func (p *Pipe) AssertExpectations()
- func (p *Pipe) Commit(msg *streams.Message) error
- func (p *Pipe) ExpectCommit()
- func (p *Pipe) ExpectForward(k, v interface{})
- func (p *Pipe) ExpectForwardToChild(k, v interface{}, index int)
- func (p *Pipe) Forward(msg *streams.Message) error
- func (p *Pipe) ForwardToChild(msg *streams.Message, index int) error
- func (p *Pipe) Messages() []ChildMessage
- func (p *Pipe) ShouldError()
Constants ¶
View Source
const (
// Anything is used where the expectation should not be considered.
Anything = "mocks.Anything"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildMessage ¶ added in v1.1.0
ChildMessage represents a message forwarded to a child index.
type Pipe ¶
type Pipe struct {
// contains filtered or unexported fields
}
Pipe is a mock Pipe.
func (*Pipe) AssertExpectations ¶
func (p *Pipe) AssertExpectations()
AssertExpectations asserts that the expectations were met.
func (*Pipe) ExpectCommit ¶
func (p *Pipe) ExpectCommit()
ExpectCommit registers an expectation of a Commit the Pipe.
func (*Pipe) ExpectForward ¶
func (p *Pipe) ExpectForward(k, v interface{})
ExpectForward registers an expectation of a Forward of the Pipe.
func (*Pipe) ExpectForwardToChild ¶
ExpectForwardToChild registers an expectation of a ForwardToChild the Pipe.
func (*Pipe) ForwardToChild ¶
ForwardToChild queues the data to the the given processor(s) child in the topology.
func (*Pipe) Messages ¶ added in v1.1.0
func (p *Pipe) Messages() []ChildMessage
Messages gets the queued Messages for each Node.
func (*Pipe) ShouldError ¶
func (p *Pipe) ShouldError()
ShouldError indicates that an error should be returned on the next operation.
Click to show internal directories.
Click to hide internal directories.