publisher

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Failed status label
	Failed = "failed"
	// IgnoredChannelMissing status label
	IgnoredChannelMissing = "ignored_channel_missing"
	// IgnoredChannelNotReady status label
	IgnoredChannelNotReady = "ignored_channel_not_ready"
	// Published status label
	Published = "published"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultKnativePublisher

type DefaultKnativePublisher struct{}

DefaultKnativePublisher is the default KnativePublisher instance.

func (*DefaultKnativePublisher) Publish

func (publisher *DefaultKnativePublisher) Publish(knativeLib *knative.KnativeLib,
	namespace *string, headers *map[string][]string, payload *[]byte, source string,
	eventType string, eventTypeVersion string) (error *api.Error, status string, channelName string)

Publish events using the KnativeLib

type KnativePublisher

type KnativePublisher interface {
	Publish(knativeLib *knative.KnativeLib, namespace *string, headers *map[string][]string,
		payload *[]byte, source string,
		eventType string, eventTypeVersion string) (error *api.Error, status string, channelName string)
}

KnativePublisher encapsulates the publish behaviour.

func NewKnativePublisher

func NewKnativePublisher() KnativePublisher

NewKnativePublisher creates a new KnativePublisher instance.

Jump to

Keyboard shortcuts

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