transport

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2017 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlackholeSender

type BlackholeSender struct {
	Name string
}

func NewBlackholeSender

func NewBlackholeSender() *BlackholeSender

func (*BlackholeSender) GetName

func (s *BlackholeSender) GetName() string

func (*BlackholeSender) Send

func (s *BlackholeSender) Send(metric *carbon.Metric)

func (*BlackholeSender) Start

func (s *BlackholeSender) Start()

type DummySender

type DummySender struct {
	Name string
	// contains filtered or unexported fields
}

DummySender should only be used for testing purposes

func NewDummySender

func NewDummySender(name string) *DummySender

func (*DummySender) GetName

func (s *DummySender) GetName() string

func (*DummySender) GetReceivedMetrics

func (s *DummySender) GetReceivedMetrics() []*carbon.Metric

func (*DummySender) Send

func (s *DummySender) Send(metric *carbon.Metric)

func (*DummySender) Start

func (s *DummySender) Start()

Start should start the dummy sender, but actually it doesn't do anything

func (*DummySender) String

func (s *DummySender) String() string

type KafkaSender

type KafkaSender struct {
	common.Config
	// contains filtered or unexported fields
}

func (*KafkaSender) GetName

func (k *KafkaSender) GetName() string

func (*KafkaSender) Send

func (k *KafkaSender) Send(metric *carbon.Metric)

func (*KafkaSender) Start

func (k *KafkaSender) Start()

type NETSender

type NETSender struct {
	common.Config
	// contains filtered or unexported fields
}

func (*NETSender) GetName

func (k *NETSender) GetName() string

func (*NETSender) Send

func (k *NETSender) Send(metric *carbon.Metric)

func (*NETSender) Start

func (k *NETSender) Start()

type RewritingSender

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

func NewRewritingSender

func NewRewritingSender(name, re, to string) *RewritingSender

func (*RewritingSender) GetName

func (s *RewritingSender) GetName() string

func (*RewritingSender) Send

func (s *RewritingSender) Send(metric *carbon.Metric)

func (*RewritingSender) Start

func (s *RewritingSender) Start()

type Sender

type Sender interface {
	Start()
	Send(metric *carbon.Metric)
	GetName() string
}

func NewKafkaSender

func NewKafkaSender(c common.Config, exitChan <-chan struct{}, workers, maxBatchSize int, sendInterval time.Duration) (Sender, error)

func NewTCPSender

func NewTCPSender(c common.Config, exitChan <-chan struct{}, workers, maxBatchSize int, sendInterval time.Duration) (Sender, error)

type SenderInitFunc

type SenderInitFunc func(c common.Config, exitChan <-chan struct{}, workers, maxBatchSize int, sendInterval time.Duration) (Sender, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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