test

package
v0.65.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeAggregation

func MakeAggregation(bucketCount int, opts *MakeAggOpts) *seqapi.Aggregation

func MakeAggregations

func MakeAggregations(aggCount, bucketCount int, opts *MakeAggOpts) []*seqapi.Aggregation

func MakeEvent

func MakeEvent(id string, countData int, t time.Time) *seqapi.Event

func MakeEvents

func MakeEvents(count int, t time.Time) []*seqapi.Event

func MakeHistogram

func MakeHistogram(bucketCount int) *seqapi.Histogram

func SetCfgDefaults

func SetCfgDefaults(cfg config.SeqAPI) config.SeqAPI

Types

type APITestData

type APITestData struct {
	Cfg   config.SeqAPI
	Mocks Mocks
}

type CacheMockArgs

type CacheMockArgs struct {
	Key   string
	Value string
	Err   error
}

type MakeAggOpts

type MakeAggOpts struct {
	NotExists        int64
	Quantiles        []float64
	Ts               []*timestamppb.Timestamp
	Values           []float64
	TargetBucketRate string
}

type Mocks

type Mocks struct {
	SeqDB            *mock_seqdb.MockClient
	Cache            *mock_cache.MockCache
	AsyncSearchesSvc *mock_asyncsearches.MockService
}

Jump to

Keyboard shortcuts

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