common

package
v3.6.0-rc12+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_SYSLOG_PRIORITY = "13"

Variables

This section is empty.

Functions

func Fatal

func Fatal(format string, v ...interface{})

Fatal is like log.Fatal, but invokes cleanup (tail) before exiting.

func RegisterTailCleanup

func RegisterTailCleanup()

Types

type MessageCommon

type MessageCommon struct {
	Text      string        `json:"text"`       // Text content of the stream message
	NodeID    string        `json:"node_id"`    // IP address of the node from which this message originated
	UnixTime  int64         `json:"unix_time"`  // Unix timestamp
	HumanTime string        `json:"human_time"` // Human readable time (unspecified format)
	Syslog    syslogMessage `json:"syslog"`
}

MessageCommon contains common fields required for representing any message stream

func NewMessageCommon

func NewMessageCommon(text string, t time.Time, node string) MessageCommon

Jump to

Keyboard shortcuts

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