Documentation ¶
Index ¶
- Variables
- func Init(cfg SeriesQuerySection)
- func NewQueryRequest(endpoint, metric string, tagsMap map[string]string, start, end int64) (*dataobj.QueryData, error)
- func Query(reqs []*dataobj.QueryData) ([]*dataobj.TsdbQueryResponse, error)
- type ConnPools
- type Counter
- type IndexData
- type IndexReq
- type IndexRequest
- type IndexResp
- type RpcClient
- type SeriesQuerySection
- type XCludeStruct
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TransferConnPools *ConnPools = &ConnPools{} Config SeriesQuerySection )
View Source
var ( ErrorIndexParamIllegal = errors.New("index param illegal") ErrorQueryParamIllegal = errors.New("query param illegal") )
Functions ¶
func Init ¶
func Init(cfg SeriesQuerySection)
func NewQueryRequest ¶
Types ¶
type ConnPools ¶
type ConnPools struct { sync.RWMutex Pools []*pool.ConnPool MaxConns int MaxIdle int ConnTimeout int CallTimeout int }
每个后端backend对应一个ConnPool
func CreateConnPools ¶
type IndexData ¶
type IndexReq ¶
type IndexReq struct { Endpoints []string `json:"endpoints"` Metric string `json:"metric"` Include []XCludeStruct `json:"include,omitempty"` Exclude []XCludeStruct `json:"exclude,omitempty"` }
type IndexRequest ¶
type RpcClient ¶
type RpcClient struct {
// contains filtered or unexported fields
}
RpcCient, 要实现io.Closer接口
type SeriesQuerySection ¶
type XCludeStruct ¶
******** 补全索引相关 ********
Click to show internal directories.
Click to hide internal directories.