Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HoneycombPublisher ¶
type HoneycombPublisher struct { Writekey string Dataset string APIHost string ScrubQuery bool SampleRate int Parser parsers.Parser AddFields map[string]string // contains filtered or unexported fields }
HoneycombPublisher implements Publisher and sends the entries provided to Honeycomb
func (*HoneycombPublisher) Close ¶
func (h *HoneycombPublisher) Close()
Close flushes outstanding sends
func (*HoneycombPublisher) Write ¶
func (h *HoneycombPublisher) Write(chunk string)
type Publisher ¶
type Publisher interface { // Write accepts a long blob of text and writes it to the target Write(blob string) }
Publisher is an interface to write rdslogs entries to a target. Current implementations are STDOUT and Honeycomb
type STDOUTPublisher ¶
type STDOUTPublisher struct { }
STDOUTPublisher implements Publisher and sends the entries provided to Honeycomb
func (*STDOUTPublisher) Write ¶
func (s *STDOUTPublisher) Write(line string)
Click to show internal directories.
Click to hide internal directories.