vlogs

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func NewVLogsAPI

func NewVLogsAPI(ec EndpointConfig, limit uint32) *API

func (*API) Execute

func (a *API) Execute(ctx context.Context, qi *logsql.QueryInfo, params RequestParams) ([]byte, error)

func (*API) QueryLogs

func (a *API) QueryLogs(ctx context.Context, logsQL string, params RequestParams) ([]byte, error)

func (*API) QueryStats

func (a *API) QueryStats(ctx context.Context, logsQL string, params RequestParams) ([]byte, error)

func (*API) QueryStatsRange

func (a *API) QueryStatsRange(ctx context.Context, logsQL string, params RequestParams) ([]byte, error)

func (*API) SetHTTPClient

func (a *API) SetHTTPClient(client *http.Client)

type APIError

type APIError struct {
	Code    int
	Message string
	Err     error
}

func (*APIError) Error

func (e *APIError) Error() string

func (*APIError) Unwrap

func (e *APIError) Unwrap() error

type EndpointConfig

type EndpointConfig struct {
	Endpoint    string
	BearerToken string
}

type RequestParams

type RequestParams struct {
	EndpointConfig
	Start    string
	End      string
	ExecMode string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL