lib

package
v0.0.0-...-f9fb41f Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EpochFromFormat

func EpochFromFormat(ts string) int64

EpochFromFormat get epoch time from one of select time string formats

Types

type DataSource

type DataSource int

DataSource indentifies a format of incoming data in the message bus channel.

func (DataSource) ListAll

func (src DataSource) ListAll() []string

ListAll returns slice of supported data sources in form of human readable names.

func (*DataSource) SetFromMessage

func (src *DataSource) SetFromMessage(jsondata []byte)

SetFromMessage resets value according to given message data format

func (*DataSource) SetFromString

func (src *DataSource) SetFromString(name string) bool

SetFromString resets value according to given human readable identification. Returns false if invalid identification was given.

func (DataSource) String

func (src DataSource) String() string

String returns human readable data type identification.

type HandlerConfig

type HandlerConfig struct {
	StrictSource string `yaml:"strictSource" validate:"oneof=generic collectd ceilometer"`
}

HandlerConfig contains validateable configuration

Jump to

Keyboard shortcuts

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