sender

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2017 License: Apache-2.0, Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const LIMIT = 200

Variables

View Source
var Debug bool
View Source
var MetaDataQueue = NewSafeLinkedList()
View Source
var PostPushUrl string

Functions

func MakeCounterValue

func MakeCounterValue(endpoint, metric, tags string, val interface{}, step_and_ts ...int64) *model.JsonMetaData

func MakeGaugeValue

func MakeGaugeValue(endpoint, metric, tags string, val interface{}, step_and_ts ...int64) *model.JsonMetaData

func MakeMetaData

func MakeMetaData(endpoint, metric, tags string, val interface{}, counterType string, step_and_ts ...int64) *model.JsonMetaData

func PostPush

func PostPush(L []*model.JsonMetaData) error

func Push

func Push(endpoint, metric, tags string, val interface{}, counterType string, step_and_ts ...int64)

func PushCounter

func PushCounter(endpoint, metric, tags string, val interface{}, step_and_ts ...int64)

func PushGauge

func PushGauge(endpoint, metric, tags string, val interface{}, step_and_ts ...int64)

func StartSender

func StartSender()

Types

type SafeLinkedList

type SafeLinkedList struct {
	sync.RWMutex
	L *list.List
}

func NewSafeLinkedList

func NewSafeLinkedList() *SafeLinkedList

func (*SafeLinkedList) Front

func (this *SafeLinkedList) Front() *list.Element

func (*SafeLinkedList) Len

func (this *SafeLinkedList) Len() int

func (*SafeLinkedList) PopBack

func (this *SafeLinkedList) PopBack(limit int) []*model.JsonMetaData

func (*SafeLinkedList) PushFront

func (this *SafeLinkedList) PushFront(v interface{}) *list.Element

Jump to

Keyboard shortcuts

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