publisher

package
v1.135.1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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)

Jump to

Keyboard shortcuts

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