producer

package
v0.0.0-...-3b4426b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudEventProducer

type CloudEventProducer struct {
	*http.AbstractHttpClient
}

func NewCloudEventProducer

func NewCloudEventProducer(eventMeshHttpClientConfig conf.EventMeshHttpClientConfig) *CloudEventProducer

func (*CloudEventProducer) Publish

func (c *CloudEventProducer) Publish(event *cloudevents.Event) error

func (*CloudEventProducer) Request

func (c *CloudEventProducer) Request(event *cloudevents.Event, timeout time.Duration) (*cloudevents.Event, error)

type EventMeshHttpProducer

type EventMeshHttpProducer struct {
	// contains filtered or unexported fields
}

func NewEventMeshHttpProducer

func NewEventMeshHttpProducer(eventMeshHttpClientConfig conf.EventMeshHttpClientConfig) *EventMeshHttpProducer

func (*EventMeshHttpProducer) PublishCloudEvent

func (e *EventMeshHttpProducer) PublishCloudEvent(event *cloudevents.Event) error

func (*EventMeshHttpProducer) PublishEventMeshMessage

func (e *EventMeshHttpProducer) PublishEventMeshMessage(message *protocol.EventMeshMessage) error

func (*EventMeshHttpProducer) RequestCloudEvent

func (e *EventMeshHttpProducer) RequestCloudEvent(event *cloudevents.Event, timeout time.Duration) (*cloudevents.Event, error)

func (*EventMeshHttpProducer) RequestEventMeshMessage

func (e *EventMeshHttpProducer) RequestEventMeshMessage(message *protocol.EventMeshMessage, timeout time.Duration) (*protocol.EventMeshMessage, error)

type EventMeshMessageProducer

type EventMeshMessageProducer struct {
	*http.AbstractHttpClient
}

func NewEventMeshMessageProducer

func NewEventMeshMessageProducer(eventMeshHttpClientConfig conf.EventMeshHttpClientConfig) *EventMeshMessageProducer

func (*EventMeshMessageProducer) Publish

func (*EventMeshMessageProducer) Request

type EventMeshProtocolProducer

type EventMeshProtocolProducer interface {

	// PublishCloudEvent publish with CloudEvent protocol
	PublishCloudEvent(event *cloudevents.Event) error
	// RequestCloudEvent request with CloudEvent protocol
	RequestCloudEvent(event *cloudevents.Event, timeout time.Duration) (*cloudevents.Event, error)

	// PublishEventMeshMessage publish with EventMeshMessage protocol
	PublishEventMeshMessage(message *protocol.EventMeshMessage) error
	// RequestEventMeshMessage request with EventMeshMessage protocol
	RequestEventMeshMessage(message *protocol.EventMeshMessage, timeout time.Duration) (*protocol.EventMeshMessage, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL