Documentation
¶
Index ¶
- Variables
- func HasDoubleDot(p []byte) bool
- func PickeParseBytes(exit chan struct{}, b []byte, now uint32, out chan *RowBinary.WriteBuffer, ...)
- func PickleParser(exit chan struct{}, in chan []byte, out chan *RowBinary.WriteBuffer, ...)
- func PlainParseBuffer(exit chan struct{}, b *Buffer, out chan *RowBinary.WriteBuffer, ...)
- func PlainParseLine(p []byte) ([]byte, float64, uint32, error)
- func PlainParser(exit chan struct{}, in chan *Buffer, out chan *RowBinary.WriteBuffer, ...)
- func RemoveDoubleDot(p []byte) []byte
- type Buffer
- type GRPC
- func (g *GRPC) Addr() net.Addr
- func (g *GRPC) Listen(addr *net.TCPAddr) error
- func (g *GRPC) Stat(send func(metric string, value float64))
- func (g *GRPC) Store(ctx context.Context, in *pb.Payload) (*empty.Empty, error)
- func (g *GRPC) StoreSync(ctx context.Context, in *pb.Payload) (*empty.Empty, error)
- type Option
- type Pickle
- type PrometheusRemoteWrite
- type Receiver
- type TCP
- type UDP
Constants ¶
This section is empty.
Variables ¶
View Source
var BufferPool = sync.Pool{ New: func() interface{} { return &Buffer{} }, }
Functions ¶
func HasDoubleDot ¶
func PickeParseBytes ¶ added in v0.6.1
func PickleParser ¶ added in v0.6.1
func PickleParser(exit chan struct{}, in chan []byte, out chan *RowBinary.WriteBuffer, metricsReceived *uint32, errors *uint32)
func PlainParseBuffer ¶
func PlainParseBuffer(exit chan struct{}, b *Buffer, out chan *RowBinary.WriteBuffer, metricsReceived *uint32, errors *uint32)
func PlainParser ¶
func PlainParser(exit chan struct{}, in chan *Buffer, out chan *RowBinary.WriteBuffer, metricsReceived *uint32, errors *uint32)
func RemoveDoubleDot ¶
Types ¶
type GRPC ¶ added in v0.6.1
GRPC receive metrics from GRPC connections
type Option ¶
func ParseThreads ¶
ParseThreads creates option for New contructor
func WriteChan ¶
func WriteChan(ch chan *RowBinary.WriteBuffer) Option
WriteChan creates option for New contructor
type Pickle ¶ added in v0.6.1
Pickle receive metrics from TCP connections
func (*Pickle) HandleConnection ¶ added in v0.6.1
type PrometheusRemoteWrite ¶ added in v0.7.0
func (*PrometheusRemoteWrite) Addr ¶ added in v0.7.0
func (rcv *PrometheusRemoteWrite) Addr() net.Addr
Addr returns binded socket address. For bind port 0 in tests
func (*PrometheusRemoteWrite) Listen ¶ added in v0.7.0
func (rcv *PrometheusRemoteWrite) Listen(addr *net.TCPAddr) error
Listen bind port. Receive messages and send to out channel
func (*PrometheusRemoteWrite) ServeHTTP ¶ added in v0.7.0
func (rcv *PrometheusRemoteWrite) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*PrometheusRemoteWrite) Stat ¶ added in v0.7.0
func (rcv *PrometheusRemoteWrite) Stat(send func(metric string, value float64))
type TCP ¶
TCP receive metrics from TCP connections
func (*TCP) HandleConnection ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.