vltypes

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: Apache-2.0 Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidConfigType = errors.New("vltypes: invalid type of config object")
)

Functions

func NormalizeConfig

func NormalizeConfig(cfg interface{}) (map[string]interface{}, error)

NormalizeConfig make sure config object meets basic requirement to be as map[string]interface{}

Types

type RetainObject added in v0.5.0

type RetainObject interface {
	Topic() string
}

RetainObject general interface of the retain as not only publish message can be retained

type TopicMessenger added in v0.5.0

type TopicMessenger interface {
	Publish(interface{}) error
	Retain(RetainObject) error
}

TopicMessenger interface for session or systree used to publish or retain messages

Jump to

Keyboard shortcuts

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