common

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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