publish

package
v0.0.0-...-7a53ea4 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedStdoutPublisher

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

BufferedStdoutPublisher buffers serialized events before sending them to stdout. It /drops/ additional events if the channel buffer becomes full. If ingestion can't keep up with TCP traffic, it's better to drop events than packets.

func NewBufferedStdoutPublisher

func NewBufferedStdoutPublisher(bufsize int) *BufferedStdoutPublisher

func (*BufferedStdoutPublisher) Publish

func (bp *BufferedStdoutPublisher) Publish(data interface{}, timestamp time.Time)

func (*BufferedStdoutPublisher) Run

func (bp *BufferedStdoutPublisher) Run()

type HoneycombPublisher

type HoneycombPublisher struct{}

func NewHoneycombPublisher

func NewHoneycombPublisher(config libhoney.Config) *HoneycombPublisher

func (*HoneycombPublisher) Publish

func (bp *HoneycombPublisher) Publish(data interface{}, timestamp time.Time)

func (*HoneycombPublisher) Run

func (bp *HoneycombPublisher) Run()

type Publisher

type Publisher interface {
	Publish(interface{}, time.Time)
}

Jump to

Keyboard shortcuts

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