Documentation ¶
Overview ¶
Package gochan implements the CloudEvent transport implementation using go chan.
Index ¶
- type ChanResponderResponse
- type Receiver
- type Requester
- func (s *Requester) Close(ctx context.Context) (err error)
- func (s *Requester) Request(ctx context.Context, m binding.Message, transformers ...binding.Transformer) (res binding.Message, err error)
- func (s *Requester) Send(ctx context.Context, m binding.Message, transformers ...binding.Transformer) (err error)
- type Responder
- type SendReceiver
- type Sender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanResponderResponse ¶
type Requester ¶
type Requester struct { Ch chan<- binding.Message Reply func(message binding.Message) (binding.Message, error) }
type Responder ¶
type Responder struct { In <-chan binding.Message Out chan<- ChanResponderResponse }
Responder implements Responder by receiving Messages from a channel and outputting the result in an output channel. All message received in the `Out` channel must be finished
type SendReceiver ¶
type SendReceiver struct {
// contains filtered or unexported fields
}
SendReceiver is a reference implementation for using the CloudEvents binding integration.
func New ¶
func New() *SendReceiver
func (*SendReceiver) Close ¶ added in v2.10.0
func (sr *SendReceiver) Close(ctx context.Context) error
func (*SendReceiver) Send ¶
func (sr *SendReceiver) Send(ctx context.Context, in binding.Message, transformers ...binding.Transformer) (err error)
Click to show internal directories.
Click to hide internal directories.