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.
Click to show internal directories.
Click to hide internal directories.