util

package
v1.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddressFunc added in v1.0.0

func AddressFunc(getClient func() HAKeeperClient) func(context.Context, bool) (string, error)

func Fastrand64

func Fastrand64() uint64

Fastrand64 returns a lock free uint64 value. Compared to rand.Int63(), this implementation scales.

func SetUUIDNodeID

func SetUUIDNodeID(ctx context.Context, nodeUuid []byte) error

SetUUIDNodeID set all uuid generator's node_id

Types

type HAKeeperClient added in v1.0.0

type HAKeeperClient interface {
	// GetClusterDetails queries the HAKeeper and return CN and TN nodes that are
	// known to the HAKeeper.
	GetClusterDetails(ctx context.Context) (pb.ClusterDetails, error)
}

HAKeeperClient is an interface which is mainly used to avoid cycle import.

type RunResult added in v1.0.0

type RunResult struct {
	AffectRows uint64
}

Directories

Path Synopsis
A common util to export data (trace and metric for now) as batch
A common util to export data (trace and metric for now) as batch
etl
example
Bin to show how Merge Task work.
Bin to show how Merge Task work.
A very simple fault injection tool.
A very simple fault injection tool.

Jump to

Keyboard shortcuts

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