elk

package
v0.0.0-...-af1e0cb Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HOSTNAME string

Functions

func NewElkAdapter

func NewElkAdapter(route *router.Route) (router.LogAdapter, error)

Types

type ElkAdapter

type ElkAdapter struct {
	// contains filtered or unexported fields
}

func (*ElkAdapter) Stream

func (adapter *ElkAdapter) Stream(logstream chan *router.Message)

type ElkMessage

type ElkMessage struct {
	Object struct {
		Timestamp float64 `json:"timestamp"`
		Message   string  `json:"message"`
		Hostname  string  `json:"hostname"`
		Image     string  `json:"image"`
		App       string  `json:"app"`
		Env       string  `json:"env"`
	}
	// contains filtered or unexported fields
}

func NewElkMessage

func NewElkMessage(routerMessage *router.Message) *ElkMessage

func (*ElkMessage) ToString

func (elkMessage *ElkMessage) ToString() string

Jump to

Keyboard shortcuts

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