Versions in this module Expand all Collapse all v2 v2.5.2 Apr 27, 2022 Changes in this version + var ErrNotSupported = errors.New("not supported") + type Client interface + GetOrgID func() string + ListLabelNames func(quiet bool, start, end time.Time) (*loghttp.LabelResponse, error) + ListLabelValues func(name string, quiet bool, start, end time.Time) (*loghttp.LabelResponse, error) + LiveTailQueryConn func(queryStr string, delayFor time.Duration, limit int, start time.Time, ...) (*websocket.Conn, error) + Query func(queryStr string, limit int, time time.Time, direction logproto.Direction, ...) (*loghttp.QueryResponse, error) + QueryRange func(queryStr string, limit int, start, end time.Time, direction logproto.Direction, ...) (*loghttp.QueryResponse, error) + Series func(matchers []string, start, end time.Time, quiet bool) (*loghttp.SeriesResponse, error) + type DefaultClient struct + Address string + BearerToken string + BearerTokenFile string + OrgID string + Password string + QueryTags string + Retries int + TLSConfig config.TLSConfig + Tripperware Tripperware + Username string + func (c *DefaultClient) GetOrgID() string + func (c *DefaultClient) ListLabelNames(quiet bool, start, end time.Time) (*loghttp.LabelResponse, error) + func (c *DefaultClient) ListLabelValues(name string, quiet bool, start, end time.Time) (*loghttp.LabelResponse, error) + func (c *DefaultClient) LiveTailQueryConn(queryStr string, delayFor time.Duration, limit int, start time.Time, ...) (*websocket.Conn, error) + func (c *DefaultClient) Query(queryStr string, limit int, time time.Time, direction logproto.Direction, ...) (*loghttp.QueryResponse, error) + func (c *DefaultClient) QueryRange(queryStr string, limit int, start, end time.Time, direction logproto.Direction, ...) (*loghttp.QueryResponse, error) + func (c *DefaultClient) Series(matchers []string, start, end time.Time, quiet bool) (*loghttp.SeriesResponse, error) + type FileClient struct + func NewFileClient(r io.ReadCloser) *FileClient + func (f *FileClient) GetOrgID() string + func (f *FileClient) ListLabelNames(quiet bool, start, end time.Time) (*loghttp.LabelResponse, error) + func (f *FileClient) ListLabelValues(name string, quiet bool, start, end time.Time) (*loghttp.LabelResponse, error) + func (f *FileClient) LiveTailQueryConn(queryStr string, delayFor time.Duration, limit int, start time.Time, ...) (*websocket.Conn, error) + func (f *FileClient) Query(q string, limit int, t time.Time, direction logproto.Direction, quiet bool) (*loghttp.QueryResponse, error) + func (f *FileClient) QueryRange(queryStr string, limit int, start, end time.Time, direction logproto.Direction, ...) (*loghttp.QueryResponse, error) + func (f *FileClient) Series(matchers []string, start, end time.Time, quiet bool) (*loghttp.SeriesResponse, error) + type Tripperware func(http.RoundTripper) http.RoundTripper