Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EpochFromFormat ¶
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
Click to show internal directories.
Click to hide internal directories.