Documentation ¶
Index ¶
- Constants
- Variables
- func TraceContextToZap(ctx context.Context, logger *zap.Logger) *zap.Logger
- func TraceHandler(h http.HandlerFunc) http.HandlerFunc
- type CarbonserverListener
- func (listener *CarbonserverListener) CurrentFileIndex() *fileIndex
- func (listener *CarbonserverListener) Listen(listen string) error
- func (listener *CarbonserverListener) SetBuckets(buckets int)
- func (listener *CarbonserverListener) SetFindCacheEnabled(enabled bool)
- func (listener *CarbonserverListener) SetGraphiteWeb10(enabled bool)
- func (listener *CarbonserverListener) SetIdleTimeout(idleTimeout time.Duration)
- func (listener *CarbonserverListener) SetMaxGlobs(maxGlobs int)
- func (listener *CarbonserverListener) SetMetricsAsCounters(metricsAsCounters bool)
- func (listener *CarbonserverListener) SetQueryCacheEnabled(enabled bool)
- func (listener *CarbonserverListener) SetQueryCacheSizeMB(size int)
- func (listener *CarbonserverListener) SetReadTimeout(readTimeout time.Duration)
- func (listener *CarbonserverListener) SetScanFrequency(scanFrequency time.Duration)
- func (listener *CarbonserverListener) SetTrigramIndex(enabled bool)
- func (listener *CarbonserverListener) SetWhisperData(whisperData string)
- func (listener *CarbonserverListener) SetWriteTimeout(writeTimeout time.Duration)
- func (listener *CarbonserverListener) Stat(send helper.StatCallback)
- func (listener *CarbonserverListener) Stop() error
- func (listener *CarbonserverListener) UpdateFileIndex(fidx *fileIndex)
- func (listener *CarbonserverListener) UpdateMetricsAccessTimes(metrics []string)
- type IntervalSet
- type QueryItem
Constants ¶
View Source
const ( QueryIsPending uint64 = 1 << iota DataIsAvailable )
Variables ¶
View Source
var TraceHeaders = map[string]string{
"X-CTX-CarbonAPI-UUID": "carbonapi_uuid",
"X-CTX-CarbonZipper-UUID": "carbonzipper_uuid",
"X-Request-ID": "request_id",
}
Functions ¶
func TraceContextToZap ¶ added in v0.10.0
func TraceHandler ¶ added in v0.10.0
func TraceHandler(h http.HandlerFunc) http.HandlerFunc
Types ¶
type CarbonserverListener ¶
func NewCarbonserverListener ¶
func NewCarbonserverListener(cacheGetFunc func(key string) []points.Point) *CarbonserverListener
func (*CarbonserverListener) CurrentFileIndex ¶
func (listener *CarbonserverListener) CurrentFileIndex() *fileIndex
func (*CarbonserverListener) Listen ¶
func (listener *CarbonserverListener) Listen(listen string) error
func (*CarbonserverListener) SetBuckets ¶
func (listener *CarbonserverListener) SetBuckets(buckets int)
func (*CarbonserverListener) SetFindCacheEnabled ¶ added in v0.10.0
func (listener *CarbonserverListener) SetFindCacheEnabled(enabled bool)
func (*CarbonserverListener) SetGraphiteWeb10 ¶ added in v0.10.0
func (listener *CarbonserverListener) SetGraphiteWeb10(enabled bool)
func (*CarbonserverListener) SetIdleTimeout ¶ added in v0.10.0
func (listener *CarbonserverListener) SetIdleTimeout(idleTimeout time.Duration)
func (*CarbonserverListener) SetMaxGlobs ¶
func (listener *CarbonserverListener) SetMaxGlobs(maxGlobs int)
func (*CarbonserverListener) SetMetricsAsCounters ¶
func (listener *CarbonserverListener) SetMetricsAsCounters(metricsAsCounters bool)
func (*CarbonserverListener) SetQueryCacheEnabled ¶ added in v0.10.0
func (listener *CarbonserverListener) SetQueryCacheEnabled(enabled bool)
func (*CarbonserverListener) SetQueryCacheSizeMB ¶ added in v0.10.0
func (listener *CarbonserverListener) SetQueryCacheSizeMB(size int)
func (*CarbonserverListener) SetReadTimeout ¶
func (listener *CarbonserverListener) SetReadTimeout(readTimeout time.Duration)
func (*CarbonserverListener) SetScanFrequency ¶
func (listener *CarbonserverListener) SetScanFrequency(scanFrequency time.Duration)
func (*CarbonserverListener) SetTrigramIndex ¶ added in v0.10.0
func (listener *CarbonserverListener) SetTrigramIndex(enabled bool)
func (*CarbonserverListener) SetWhisperData ¶
func (listener *CarbonserverListener) SetWhisperData(whisperData string)
func (*CarbonserverListener) SetWriteTimeout ¶
func (listener *CarbonserverListener) SetWriteTimeout(writeTimeout time.Duration)
func (*CarbonserverListener) Stat ¶
func (listener *CarbonserverListener) Stat(send helper.StatCallback)
func (*CarbonserverListener) Stop ¶
func (listener *CarbonserverListener) Stop() error
func (*CarbonserverListener) UpdateFileIndex ¶
func (listener *CarbonserverListener) UpdateFileIndex(fidx *fileIndex)
func (*CarbonserverListener) UpdateMetricsAccessTimes ¶ added in v0.10.0
func (listener *CarbonserverListener) UpdateMetricsAccessTimes(metrics []string)
type IntervalSet ¶
Fake single interval set for graphite
func (*IntervalSet) MarshalPickle ¶
func (i *IntervalSet) MarshalPickle() ([]byte, error)
type QueryItem ¶ added in v0.10.0
type QueryItem struct { Data atomic.Value Flags uint64 // DataIsAvailable or QueryIsPending QueryFinished chan struct{} }
func (*QueryItem) FetchOrLock ¶ added in v0.10.0
func (*QueryItem) StoreAbort ¶ added in v0.10.0
func (q *QueryItem) StoreAbort()
func (*QueryItem) StoreAndUnlock ¶ added in v0.10.0
func (q *QueryItem) StoreAndUnlock(data interface{})
Click to show internal directories.
Click to hide internal directories.