vlstorage

package
v0.8.0-victorialogs Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanWriteData added in v1.94.0

func CanWriteData() error

CanWriteData returns non-nil error if it cannot write data to vlstorage.

func GetFieldNames

func GetFieldNames(ctx context.Context, tenantIDs []logstorage.TenantID, q *logstorage.Query) ([]string, error)

GetFieldNames executes q and returns field names seen in results.

func GetFieldValues

func GetFieldValues(ctx context.Context, tenantIDs []logstorage.TenantID, q *logstorage.Query, fieldName string, limit uint64) ([]string, error)

GetFieldValues executes q and returns unique values for the fieldName seen in results.

If limit > 0, then up to limit unique values are returned.

func Init

func Init()

Init initializes vlstorage.

Stop must be called when vlstorage is no longer needed

func MustAddRows

func MustAddRows(lr *logstorage.LogRows)

MustAddRows adds lr to vlstorage

It is advised to call CanWriteData() before calling MustAddRows()

func RunQuery

func RunQuery(ctx context.Context, tenantIDs []logstorage.TenantID, q *logstorage.Query, writeBlock logstorage.WriteBlockFunc) error

RunQuery runs the given q and calls writeBlock for the returned data blocks

func Stop

func Stop()

Stop stops vlstorage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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