Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientOpts ¶
type LokiClient ¶
type LokiClient interface { Ping(ctx context.Context) error GetLogs(args QueryArgs) ([]byte, error) TailLogs(args QueryArgs, writer io.WriteCloser) error Close() }
func NewLokiClient ¶
func NewLokiClient(httpAddr string, opts ClientOpts) (LokiClient, error)
type PreWriteFunc ¶
type QueryArgs ¶
type QueryArgs struct { StreamSelectors []StreamSelector SearchKeyword *string StartTime *time.Time EndTime *time.Time LimitLength *int PreWriteFunc PreWriteFunc }
type StreamSelector ¶
Click to show internal directories.
Click to hide internal directories.