publishers

package
v1.1.23 Latest Latest
Warning

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

Go to latest
Published: May 19, 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
}

HTTPSettings struct

type Publisher

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

Publisher interface

func SetupHTTP

func SetupHTTP(newSettings HTTPSettings) Publisher

SetupHTTP sets up the http client

func SetupPubSub added in v1.1.14

func SetupPubSub(newSettings pubsub.Settings) (Publisher, error)

SetupPubSub connection

Jump to

Keyboard shortcuts

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