common

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: Apache-2.0 Imports: 8 Imported by: 1 module, 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

View Source
const (
	MockHTTPPortStart = 6060
	StorePortStart    = 9991
	IngestorPortStart = 9891
	Localhost         = "127.0.0.1"
)

Variables

View Source
var (
	ProjectRoot = filepath.Join(filepath.Dir(b), "..", "..")
	TestsDir    = filepath.Join(ProjectRoot, "tests")

	TestDataDir = filepath.Join(TestsDir, "data")
)

Functions

func CreateDir

func CreateDir(path string)

func CreateTempDir

func CreateTempDir() string

func GetTestTmpDir

func GetTestTmpDir(t *testing.T) string

func IDs

func IDs(ids ...int) []seq.ID

func MakeHitsTotal

func MakeHitsTotal() *prometheus.CounterVec

func MakeTouchTotal

func MakeTouchTotal() *prometheus.CounterVec

func RandomString

func RandomString(minLen, maxLen int) string

func RecreateDir

func RecreateDir(path string)

func RemoveDir

func RemoveDir(path string)

func ToBytesSlice

func ToBytesSlice(s []string) [][]byte

func ToBytesSlice2d

func ToBytesSlice2d(s [][]string) [][][]byte

func ToStringSlice

func ToStringSlice(s [][]byte) []string

func ToStringSlice2d

func ToStringSlice2d(s [][][]byte) [][]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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