Documentation ¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LabelBuilder ¶
type SafeList ¶
func NewSafeList ¶
func NewSafeList() *SafeList
func (*SafeList) PushFrontBatch ¶
func (sl *SafeList) PushFrontBatch(vs []interface{})
type SafeListLimited ¶
type SafeListLimited struct { SL *SafeList // contains filtered or unexported fields }
SafeList with Limited Size
func NewSafeListLimited ¶
func NewSafeListLimited(maxSize int) *SafeListLimited
func (*SafeListLimited) Len ¶
func (sll *SafeListLimited) Len() int
func (*SafeListLimited) PopBack ¶
func (sll *SafeListLimited) PopBack(max int) []*prompb.TimeSeries
func (*SafeListLimited) PushFront ¶
func (sll *SafeListLimited) PushFront(v interface{}) bool
func (*SafeListLimited) PushFrontBatch ¶
func (sll *SafeListLimited) PushFrontBatch(vs []interface{}) bool
func (*SafeListLimited) RemoveAll ¶
func (sll *SafeListLimited) RemoveAll()
type WriterType ¶
type WriterType struct { Opts pconf.WriterOptions ForceUseServerTS bool Client api.Client }
func (WriterType) Write ¶
func (w WriterType) Write(index int, items []*prompb.TimeSeries, headers ...map[string]string)
type WritersType ¶
type WritersType struct {
// contains filtered or unexported fields
}
func NewWriters ¶
func NewWriters(pushgwConfig pconf.Pushgw) *WritersType
func (*WritersType) Init ¶
func (ws *WritersType) Init() error
func (*WritersType) PushSample ¶
func (ws *WritersType) PushSample(ident string, v interface{})
func (*WritersType) Put ¶
func (ws *WritersType) Put(name string, writer WriterType)
func (*WritersType) StartConsumer ¶
func (ws *WritersType) StartConsumer(index int, ch *SafeListLimited)
Click to show internal directories.
Click to hide internal directories.