http

package
v0.0.0-...-20cce8f Latest Latest
Warning

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

Go to latest
Published: May 10, 2015 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPAdapter

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

NewHTTPAdapter creates an HTTPAdapter

Types

type HTTPAdapter

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

HTTPAdapter is an adapter that POSTs logs to an HTTP endpoint

func (*HTTPAdapter) Stream

func (a *HTTPAdapter) Stream(logstream chan *router.Message)

Stream implements the router.LogAdapter interface

type HTTPMessage

type HTTPMessage struct {
	Message  string `json:"message"`
	Time     string `json:"time"`
	Source   string `json:"source"`
	Name     string `json:"docker_name"`
	ID       string `json:"docker_id"`
	Image    string `json:"docker_image"`
	Hostname string `json:"docker_hostname"`
}

HTTPMessage is a simple JSON representation of the log message.

Jump to

Keyboard shortcuts

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