Documentation
¶
Index ¶
- type Option
- type Responder
- func (r *Responder) Close(_ context.Context) error
- func (r *Responder) NewRequest(req orbital.TaskRequest)
- func (r *Responder) NewResponse() orbital.TaskResponse
- func (r *Responder) ReceiveTaskRequest(ctx context.Context) (orbital.TaskRequest, error)
- func (r *Responder) SendTaskResponse(ctx context.Context, resp orbital.TaskResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*config)
Option is a function that modifies the config parameter of the Responder.
func WithInputBufferSize ¶
WithInputBufferSize sets the input buffer size for the Responder.
func WithOutputBufferSize ¶
WithOutputBufferSize sets the output buffer size for the Responder.
type Responder ¶
type Responder struct {
// contains filtered or unexported fields
}
Responder is a mock implementation of the operator.Responder interface.
func NewResponder ¶
NewResponder creates a new Responder instance. It allows options to configure the buffer size of the input and output channel.
func (*Responder) NewRequest ¶
func (r *Responder) NewRequest(req orbital.TaskRequest)
NewRequest sends the task request to the input channel.
func (*Responder) NewResponse ¶
func (r *Responder) NewResponse() orbital.TaskResponse
NewResponse receives the task response from the output channel.
func (*Responder) ReceiveTaskRequest ¶
ReceiveTaskRequest receives a task request from the input channel.
func (*Responder) SendTaskResponse ¶
SendTaskResponse sends a task response to the output channel.