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")
Functions ¶
Types ¶
type ByteEmitter ¶
type EventEmitter ¶
type EventEmitter struct {
// contains filtered or unexported fields
}
func NewEventEmitter ¶
func NewEventEmitter(byteEmitter ByteEmitter, origin string) *EventEmitter
func (*EventEmitter) Close ¶
func (e *EventEmitter) Close()
func (*EventEmitter) EmitEnvelope ¶
func (e *EventEmitter) EmitEnvelope(envelope *events.Envelope) error
func (*EventEmitter) Origin ¶
func (e *EventEmitter) Origin() string
type UDPEmitter ¶
type UDPEmitter struct {
// contains filtered or unexported fields
}
func NewUdpEmitter ¶
func NewUdpEmitter(remoteAddr string) (*UDPEmitter, error)
func (*UDPEmitter) Address ¶
func (e *UDPEmitter) Address() net.Addr
func (*UDPEmitter) Close ¶
func (e *UDPEmitter) Close()
func (*UDPEmitter) Emit ¶
func (e *UDPEmitter) Emit(data []byte) error
Click to show internal directories.
Click to hide internal directories.