data

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package data contains integration test cases of the measure.

Index

Constants

This section is empty.

Variables

View Source
var VerifyFn = func(innerGm gm.Gomega, sharedContext helpers.SharedContext, args helpers.Args) {
	ctx := context.Background()
	verifyWithContext(ctx, innerGm, sharedContext, args)
}

VerifyFn verify whether the query response matches the wanted result.

View Source
var VerifyFnWithAuth = func(innerGm gm.Gomega, sharedContext helpers.SharedContext, args helpers.Args, username, password string) {
	ctx := metadata.AppendToOutgoingContext(context.Background(),
		"username", username,
		"password", password,
	)
	verifyWithContext(ctx, innerGm, sharedContext, args)
}

VerifyFnWithAuth verify whether the query response matches the wanted result with Auth.

Functions

func Write

func Write(conn *grpclib.ClientConn, name, group, dataFile string,
	baseTime time.Time, interval time.Duration,
)

Write data into the server.

func WriteMixed added in v0.10.0

func WriteMixed(conn *grpclib.ClientConn, baseTime time.Time, interval time.Duration, writeSpecs ...WriteSpec)

WriteMixed writes measure data in schema order first, and then in spec order.

func WriteOnly added in v0.8.0

func WriteOnly(conn *grpclib.ClientConn, name, group, dataFile string,
	baseTime time.Time, interval time.Duration,
) measurev1.MeasureService_WriteClient

WriteOnly write data into the server and return the write client.

func WriteWithAuth added in v0.9.0

func WriteWithAuth(conn *grpclib.ClientConn, name, group, dataFile string,
	baseTime time.Time, interval time.Duration, username, password string,
)

WriteWithAuth data into the server with Auth.

func WriteWithSpec added in v0.10.0

func WriteWithSpec(conn *grpclib.ClientConn, baseTime time.Time, interval time.Duration, writeSpecs ...WriteSpec)

WriteWithSpec writes data using multiple data_point_specs to specify tag and field names.

Types

type WriteSpec added in v0.10.0

type WriteSpec struct {
	Metadata *commonv1.Metadata
	Spec     *measurev1.DataPointSpec
	DataFile string
}

WriteSpec defines the specification for writing measure data.

Jump to

Keyboard shortcuts

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