Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Writers = NewWriters()
Functions ¶
func Init ¶
func Init(opts []config.WriterOptions, globalOpt config.WriterGlobalOpt) error
Types ¶
type SafeList ¶ added in v5.14.2
func NewSafeList ¶ added in v5.14.2
func NewSafeList() *SafeList
func (*SafeList) PopBack ¶ added in v5.14.2
func (sl *SafeList) PopBack(max int) []*prompb.TimeSeries
func (*SafeList) PushFrontBatch ¶ added in v5.14.2
func (sl *SafeList) PushFrontBatch(vs []interface{})
type SafeListLimited ¶ added in v5.14.2
type SafeListLimited struct { SL *SafeList // contains filtered or unexported fields }
SafeList with Limited Size
func NewSafeListLimited ¶ added in v5.14.2
func NewSafeListLimited(maxSize int) *SafeListLimited
func (*SafeListLimited) Len ¶ added in v5.14.2
func (sll *SafeListLimited) Len() int
func (*SafeListLimited) PopBack ¶ added in v5.14.2
func (sll *SafeListLimited) PopBack(max int) []*prompb.TimeSeries
func (*SafeListLimited) PushFront ¶ added in v5.14.2
func (sll *SafeListLimited) PushFront(v interface{}) bool
func (*SafeListLimited) PushFrontBatch ¶ added in v5.14.2
func (sll *SafeListLimited) PushFrontBatch(vs []interface{}) bool
func (*SafeListLimited) RemoveAll ¶ added in v5.14.2
func (sll *SafeListLimited) RemoveAll()
type WriterType ¶
type WriterType struct { Opts config.WriterOptions Client api.Client }
func (WriterType) Write ¶
func (w WriterType) Write(cluster string, index int, items []*prompb.TimeSeries, headers ...map[string]string)
type WritersType ¶
type WritersType struct {
// contains filtered or unexported fields
}
func NewWriters ¶
func NewWriters() WritersType
func (*WritersType) PushSample ¶ added in v5.6.1
func (ws *WritersType) PushSample(ident string, v interface{}, clusters ...string)
func (*WritersType) Put ¶
func (ws *WritersType) Put(name string, writer WriterType)
func (*WritersType) StartConsumer ¶ added in v5.6.1
func (ws *WritersType) StartConsumer(index int, ch *SafeListLimited, clusterName string)
Click to show internal directories.
Click to hide internal directories.