publishers

package
v0.0.0-...-116269d Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 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 HTTPSettings

type HTTPSettings struct {
	Address string
	Token   string
}

HTTP Settings

type NatsSettings

type NatsSettings struct {
	URL      string
	Token    string
	Password string
	User     string
}

Nats Settings

type Publisher

type Publisher interface {
	// Publish message
	Publish(messageBites []byte) error
}

func SetupHTTP

func SetupHTTP(newSettings HTTPSettings) Publisher

Setup HTTP

func SetupNats

func SetupNats(newSettings NatsSettings) Publisher

Setup Nats

Jump to

Keyboard shortcuts

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