Documentation
¶
Index ¶
- type CarbonSearch
- type Config
- type ServerResponse
- type Stats
- type Timeouts
- type UpstreamResponse
- type Zipper
- func (z *Zipper) Find(ctx context.Context, logger *zap.Logger, query string) ([]pb3.GlobMatch, *Stats, error)
- func (z *Zipper) Info(ctx context.Context, logger *zap.Logger, target string) (map[string]pb3.InfoResponse, *Stats, error)
- func (z *Zipper) Render(ctx context.Context, logger *zap.Logger, target string, from, until int32) (*pb3.MultiFetchResponse, *Stats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarbonSearch ¶
CarbonSearch is a global structure that contains carbonsearch related configuration bits
type Config ¶
type Config struct { ConcurrencyLimitPerServer int MaxIdleConnsPerHost int Backends []string CarbonSearch CarbonSearch PathCache pathcache.PathCache SearchCache pathcache.PathCache Timeouts Timeouts KeepAliveInterval time.Duration `yaml:"keepAliveInterval"` }
Config is a structure that contains zipper-related configuration bits
type ServerResponse ¶
type ServerResponse struct {
// contains filtered or unexported fields
}
ServerResponse contains response from the zipper
type Stats ¶
type Stats struct { Timeouts int64 FindErrors int64 RenderErrors int64 InfoErrors int64 SearchRequests int64 SearchCacheHits int64 SearchCacheMisses int64 MemoryUsage int64 CacheMisses int64 CacheHits int64 }
Stats provides zipper-related statistics
type Timeouts ¶
type Timeouts struct { Global time.Duration `yaml:"global"` AfterStarted time.Duration `yaml:"afterStarted"` Connect time.Duration `yaml:"connect"` }
Timeouts is a global structure that contains configuration for zipper Timeouts
type UpstreamResponse ¶
Click to show internal directories.
Click to hide internal directories.