listeners

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batcher

type Batcher interface {
	BatchCounter(name string) metricbatcher.BatchCounterChainer
	BatchIncrementCounter(name string)
	BatchAddCounter(name string, delta uint64)
}

type GRPCListener

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

func NewGRPCListener

func NewGRPCListener(
	router *grpcmanager.Router,
	sinkmanager *sinkmanager.SinkManager,
	conf config.GRPC,
	envelopeBuffer *diodes.ManyToOneEnvelope,
	batcher *metricbatcher.MetricBatcher,
) (*GRPCListener, error)

func (*GRPCListener) Start

func (g *GRPCListener) Start()

type TCPListener

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

func NewTCPListener

func NewTCPListener(
	metricProto, address string,
	tlsListenerConfig *config.TLSListenerConfig,
	envelopesBuffer *diodes.ManyToOneEnvelope,
	batcher Batcher,
	deadline time.Duration,
) (*TCPListener, error)

func (*TCPListener) Address

func (t *TCPListener) Address() string

func (*TCPListener) Start

func (t *TCPListener) Start()

func (*TCPListener) Stop

func (t *TCPListener) Stop()

type UDPListener

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

func NewUDPListener

func NewUDPListener(host string, batcher Batcher, metricProto string) (*UDPListener, <-chan []byte)

func (*UDPListener) Address

func (l *UDPListener) Address() string

func (*UDPListener) Start

func (l *UDPListener) Start()

func (*UDPListener) Stop

func (l *UDPListener) Stop()

Jump to

Keyboard shortcuts

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