eventmarshaller

package
v74.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0, BSD-3-Clause, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchChainByteWriter

type BatchChainByteWriter interface {
	Write(message []byte, chainers ...metricbatcher.BatchCounterChainer) (err error)
}

BatchChainByteWriter is a byte writer than can accept a series of metricbatcher.BatchCounterChainer values. It should add any additional tags it needs and send the chainer when the message is successfully sent.

type EventBatcher

type EventBatcher interface {
	BatchCounter(name string) (chainer metricbatcher.BatchCounterChainer)
	BatchIncrementCounter(name string)
}

type EventMarshaller

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

func New

func New(batcher EventBatcher) *EventMarshaller

func (*EventMarshaller) SetWriter

func (m *EventMarshaller) SetWriter(byteWriter BatchChainByteWriter)

func (*EventMarshaller) Write

func (m *EventMarshaller) Write(envelope *events.Envelope)

Jump to

Keyboard shortcuts

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