Documentation ¶
Index ¶
- Constants
- func Init(configs []*ReadConfig, ops ...func()) error
- func InstantQueryTime(ts int64) func(query *InstantQuery)
- func InstantQueryTimeout(timeout time.Duration) func(query *InstantQuery)
- func LookBackDelta(t time.Duration) func()
- func RangeQueryTimeout(timeout time.Duration) func(*RangeQuery)
- type InstantQuery
- type QueryData
- type RangeQuery
- type ReadConfig
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(configs []*ReadConfig, ops ...func()) error
func InstantQueryTime ¶ added in v0.1.0
func InstantQueryTime(ts int64) func(query *InstantQuery)
func InstantQueryTimeout ¶ added in v0.1.0
func InstantQueryTimeout(timeout time.Duration) func(query *InstantQuery)
func LookBackDelta ¶ added in v0.0.6
func RangeQueryTimeout ¶ added in v0.1.0
func RangeQueryTimeout(timeout time.Duration) func(*RangeQuery)
Types ¶
type InstantQuery ¶ added in v0.1.0
func NewInstantQuery ¶ added in v0.1.0
func NewInstantQuery(query string, opts ...func(*InstantQuery)) *InstantQuery
func (*InstantQuery) Do ¶ added in v0.1.0
func (q *InstantQuery) Do() (*QueryData, error)
type QueryData ¶
type RangeQuery ¶ added in v0.1.0
func NewRangeQuery ¶ added in v0.1.0
func NewRangeQuery(query string, start, end int64, step int, opts ...func(*RangeQuery)) *RangeQuery
func (*RangeQuery) Do ¶ added in v0.1.0
func (q *RangeQuery) Do() (*QueryData, error)
type ReadConfig ¶
Click to show internal directories.
Click to hide internal directories.