tsoapi

package
v2.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Primary

type Primary struct {
	NewPrimary string `json:"new_primary"`
}

Primary is the type for transfer primary

type TSOClient

type TSOClient interface {

	// NOTE: this only transfer the leader of the default keyspace group
	TransferTSOLeader(ctx context.Context, transferee string) error
}

TSOClient provides tso api

func NewTSOClient

func NewTSOClient(url string, timeout time.Duration, tlsConfig *tls.Config) TSOClient

NewTSOClient returns a new TSOClient

Jump to

Keyboard shortcuts

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