Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorMissingOrigin = errors.New("Event not emitted due to missing origin information")
View Source
var ErrorUnknownEventType = errors.New("Cannot create envelope for unknown event type")
View Source
var MaxTTL = time.Minute
Functions ¶
This section is empty.
Types ¶
type BatchChainByteWriter ¶
type EnvelopeWriter ¶
type EventMarshaller ¶
type EventMarshaller struct {
// contains filtered or unexported fields
}
func NewMarshaller ¶
func NewMarshaller(mc MetricClient) *EventMarshaller
func (*EventMarshaller) SetWriter ¶
func (m *EventMarshaller) SetWriter(byteWriter BatchChainByteWriter)
func (*EventMarshaller) Write ¶
func (m *EventMarshaller) Write(envelope *events.Envelope)
type EventWriter ¶
type EventWriter struct {
// contains filtered or unexported fields
}
func New ¶
func New(origin string) *EventWriter
func (*EventWriter) EmitEnvelope ¶
func (e *EventWriter) EmitEnvelope(envelope *events.Envelope) error
func (*EventWriter) Origin ¶
func (e *EventWriter) Origin() string
func (*EventWriter) SetWriter ¶
func (e *EventWriter) SetWriter(writer EnvelopeWriter)
type MessageAggregator ¶
type MessageAggregator struct {
// contains filtered or unexported fields
}
func NewAggregator ¶
func NewAggregator(outputWriter EnvelopeWriter) *MessageAggregator
func (*MessageAggregator) Write ¶
func (m *MessageAggregator) Write(envelope *events.Envelope)
type MetricClient ¶
type MetricClient interface {
NewCounter(name string, opts ...metricemitter.MetricOption) *metricemitter.Counter
}
MetricClient creates new CounterMetrics to be emitted periodically.
Click to show internal directories.
Click to hide internal directories.