Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendEvent

func SendEvent(config *Configuration, context context.Context, publishRequest *apiv1.PublishEventParametersV1) (*api.PublishEventResponses, error)

SendEvent sends a CloudEvent to the application's HTTP Adapter using the CloudEvent client.

Types

type Configuration

type Configuration struct {
	Source           string
	CloudEventClient cloudevents.Client
}

func InitConfig

func InitConfig(source string, eventMeshURL string) (*Configuration, error)

InitConfig returns an Event mesh configuration instance which is required by the Event publish and delivery flows.

Source Files