messages

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DogStatsDMessage

type DogStatsDMessage interface {
	Type() DogStatsDMessageType
	Data() []byte
}

func ParseDogStatsDMessage

func ParseDogStatsDMessage(buf []byte) (DogStatsDMessage, error)

ParseDogStatsDMessage parses a DogStatsDMessage, returning the correct message back

type DogStatsDMessageType

type DogStatsDMessageType int
const (
	MetricMessageType DogStatsDMessageType = iota
	ServiceCheckMessageType
	EventMessageType
)

func (DogStatsDMessageType) String

func (d DogStatsDMessageType) String() string

type DogStatsDMetric

type DogStatsDMetric struct {
	Namespace     string
	Name          string
	MetricData    []byte
	Timestamp     time.Time
	MetricType    DogStatsDMetricType
	RawValue      string
	FloatValue    float64
	DurationValue time.Duration
	Extras        []string
	Tags          []string
	SampleRate    float64
}

func (DogStatsDMetric) Data

func (d DogStatsDMetric) Data() []byte

func (DogStatsDMetric) Type

type DogStatsDMetricType

type DogStatsDMetricType int
const (
	GaugeMetricType DogStatsDMetricType = iota
	CounterMetricType
	SetMetricType
	TimerMetricType
	HistogramMetricType
)

func (DogStatsDMetricType) String

func (d DogStatsDMetricType) String() string

type DogStatsDServiceCheck

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

func (DogStatsDServiceCheck) Data

func (d DogStatsDServiceCheck) Data() []byte

func (DogStatsDServiceCheck) Type

type Handler added in v0.4.0

type Handler struct {
	Logger     *log.Logger
	Out        OutputHandler
	PoolSize   int
	BufferSize int
	// contains filtered or unexported fields
}

func (*Handler) Handle added in v0.4.0

func (h *Handler) Handle(msg []byte) error

Handle submits to the pool

func (*Handler) New added in v0.4.0

func (h *Handler) New() *Handler

func (*Handler) Stop added in v0.4.0

func (h *Handler) Stop()

type OutputHandler added in v0.4.0

type OutputHandler func([]byte) error

Jump to

Keyboard shortcuts

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