publisher

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FAILED status label
	FAILED = "failed"
	// IGNORED status label
	IGNORED = "ignored"
	// 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, channelName *string,
	namespace *string, headers *map[string][]string, payload *[]byte, publishRequest *api.Request) (*api.Error,
	string)

Publish events using the KnativeLib

type KnativePublisher

type KnativePublisher interface {
	Publish(knativeLib *knative.KnativeLib, channelName *string, namespace *string, headers *map[string][]string,
		payload *[]byte, publishRequest *api.Request) (*api.Error, 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