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 ¶
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 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 ¶
func NewKafkaSender ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.