Documentation ¶
Index ¶
- type Config
- type Data
- type DroppedEntry
- type Entry
- type LokiClient
- func (lc *LokiClient) Get(url string) (*http.Response, error)
- func (lc *LokiClient) QueryRange(ctx context.Context, infinite bool) chan *LokiQueryRangeResponse
- func (lc *LokiClient) Ready(ctx context.Context) error
- func (lc *LokiClient) SetTomb(t *tomb.Tomb)
- func (lc *LokiClient) Tail(ctx context.Context) (chan *LokiResponse, error)
- type LokiQueryRangeResponse
- type LokiResponse
- type Stream
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DroppedEntry ¶
type Entry ¶
func (*Entry) UnmarshalJSON ¶
type LokiClient ¶
func NewLokiClient ¶
func NewLokiClient(config Config) *LokiClient
func (*LokiClient) Get ¶ added in v1.6.1
func (lc *LokiClient) Get(url string) (*http.Response, error)
Create a wrapper for http.Get to be able to set headers and auth
func (*LokiClient) QueryRange ¶
func (lc *LokiClient) QueryRange(ctx context.Context, infinite bool) chan *LokiQueryRangeResponse
func (*LokiClient) SetTomb ¶
func (lc *LokiClient) SetTomb(t *tomb.Tomb)
func (*LokiClient) Tail ¶
func (lc *LokiClient) Tail(ctx context.Context) (chan *LokiResponse, error)
type LokiQueryRangeResponse ¶
LokiQuery GET response. See https://grafana.com/docs/loki/latest/api/#get-lokiapiv1query
type LokiResponse ¶
type LokiResponse struct { Streams []Stream `json:"streams"` DroppedEntries []interface{} `json:"dropped_entries"` //We don't care about the actual content i think ? }
Click to show internal directories.
Click to hide internal directories.