Documentation ¶
Index ¶
- type ConsumeClient
- type EnvelopeIn
- type EnvelopeOut
- func (e *EnvelopeOut) AsStdRecord() *http.Request
- func (e *EnvelopeOut) Read(p []byte) (n int, err error)
- func (e *EnvelopeOut) ResetPayload()
- func (e *EnvelopeOut) SetBindings(bindings runHttp.MessageBindings)
- func (e *EnvelopeOut) SetContentType(contentType string)
- func (e *EnvelopeOut) SetHeaders(headers run.Headers)
- func (e *EnvelopeOut) Write(p []byte) (n int, err error)
- type ImplementationRecord
- type ProduceClient
- type Publisher
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsumeClient ¶
func NewConsumer ¶
func NewConsumer(bindings *runHttp.ServerBindings) (consumer *ConsumeClient, err error)
func (*ConsumeClient) Subscriber ¶
func (c *ConsumeClient) Subscriber(_ context.Context, channelName string, bindings *runHttp.ChannelBindings) (runHttp.Subscriber, error)
type EnvelopeIn ¶
type EnvelopeIn struct { *http.Request ResponseWriter http.ResponseWriter }
func NewEnvelopeIn ¶
func NewEnvelopeIn(req *http.Request, responseWriter http.ResponseWriter) *EnvelopeIn
func (*EnvelopeIn) Headers ¶
func (e *EnvelopeIn) Headers() run.Headers
type EnvelopeOut ¶
func NewEnvelopeOut ¶
func NewEnvelopeOut() *EnvelopeOut
func (*EnvelopeOut) AsStdRecord ¶
func (e *EnvelopeOut) AsStdRecord() *http.Request
func (*EnvelopeOut) ResetPayload ¶
func (e *EnvelopeOut) ResetPayload()
func (*EnvelopeOut) SetBindings ¶
func (e *EnvelopeOut) SetBindings(bindings runHttp.MessageBindings)
func (*EnvelopeOut) SetContentType ¶
func (e *EnvelopeOut) SetContentType(contentType string)
func (*EnvelopeOut) SetHeaders ¶
func (e *EnvelopeOut) SetHeaders(headers run.Headers)
type ImplementationRecord ¶
type ProduceClient ¶
type ProduceClient struct {
// contains filtered or unexported fields
}
func NewProducer ¶
func NewProducer(serverURL string, bindings *runHttp.ServerBindings) (*ProduceClient, error)
type Publisher ¶
func NewPublisher ¶
func NewPublisher(bindings *runHttp.ChannelBindings, channelURL *url.URL) *Publisher
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber(bindings *runHttp.ChannelBindings) *Subscriber
func (*Subscriber) Close ¶
func (s *Subscriber) Close() error
func (*Subscriber) Receive ¶
func (s *Subscriber) Receive(ctx context.Context, cb func(envelope runHttp.EnvelopeReader)) error
Click to show internal directories.
Click to hide internal directories.