common

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventDetails

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

func FromPublishRequest

func FromPublishRequest(r *api.PublishRequest) *EventDetails

func FromSubscriptionSpec

func FromSubscriptionSpec(s v1alpha1.SubscriptionSpec) *EventDetails

func (*EventDetails) Encode

func (e *EventDetails) Encode() string

Encode formats the event details into a NATS streaming compliant subject name literal. Encoded subject is constructed by using the Period (`.`) character be added between tokens as a delimeter. Period character in a token literal will be escaped with a forward slash (`\.`), ex: `env.prod` will be `env\.prod`. Return value is astring literal composed of the event details tokens as: `sourceEnvironment + sourceNamespace + sourceType + eventType + eventTypeVersion`.

type StatusReady

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

func (*StatusReady) SetNotReady

func (s *StatusReady) SetNotReady()

func (*StatusReady) SetReady

func (s *StatusReady) SetReady() bool

Source Files

Jump to

Keyboard shortcuts

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