vlogs

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 9 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, si *logsql.StatementInfo, customEC EndpointConfig) ([]byte, error)

func (*API) GetFieldNames

func (a *API) GetFieldNames(ctx context.Context, logsQL string, recEC EndpointConfig) ([]byte, error)

func (*API) Query

func (a *API) Query(ctx context.Context, logsQL string, recEC EndpointConfig) ([]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 FieldNamesResponse

type FieldNamesResponse struct {
	Values []FieldNamesValue `json:"values"`
}

type FieldNamesValue

type FieldNamesValue struct {
	Value string `json:"value"`
	Hits  uint64 `json:"hits"`
}

Jump to

Keyboard shortcuts

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