common

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

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
}

EventDetails represents the event details.

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 delimiter. Period character in a token literal will be escaped with a forward slash (`\.`), ex: `env.prod` will be `env\.prod`. Return value is a string literal composed of the event details tokens as: `sourceID + eventType + eventTypeVersion`.

type RequestProvider

type RequestProvider func(method, url string, body io.Reader) (*http.Request, error)

RequestProvider represents an HTTP request provider.

type StatusReady

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

StatusReady represents the subscription ready status.

func (*StatusReady) SetNotReady

func (s *StatusReady) SetNotReady()

SetNotReady sets the subscription ready status to false.

func (*StatusReady) SetReady

func (s *StatusReady) SetReady() bool

SetReady sets the subscription ready status to true.

Jump to

Keyboard shortcuts

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