Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Writers = NewWriters()
Functions ¶
Types ¶
type WriterType ¶
func (WriterType) Write ¶
func (w WriterType) Write(items []*prompb.TimeSeries, headers ...map[string]string)
type WritersType ¶
func NewWriters ¶
func NewWriters() WritersType
func (*WritersType) PushSample ¶ added in v5.6.1
func (ws *WritersType) PushSample(ident string, v interface{})
PushSample Push one sample to chan, hash by ident @Author: quzhihao
func (*WritersType) Put ¶
func (ws *WritersType) Put(name string, writer WriterType)
func (*WritersType) StartConsumer ¶ added in v5.6.1
func (ws *WritersType) StartConsumer(ident string, ch chan *prompb.TimeSeries)
StartConsumer every ident channel has a consumer, start it @Author: quzhihao
Click to show internal directories.
Click to hide internal directories.