cmd

package
v0.0.0-...-b9a7ce2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CDCAPI_CAPTURES    = "/api/v2/captures"
	CDCAPI_CHANGEFEEDS = "/api/v2/changefeeds"
)
View Source
const (
	PDAPI_STORE          = "/pd/api/v1/stores"
	PDAPI_CONFIG         = "/pd/api/v1/config"
	PDAPI_DRSTATUS       = "/pd/api/v1/replication_mode/status"
	PDAPI_PDLEADER       = "/pd/api/v1/leader"
	PDAPI_PDMEMBERS      = "/pd/api/v1/members"
	PDAPI_PLACEMENTRULES = "/pd/api/v1/config/rules"
)
View Source
const (
	COMPONENT_TIDB = "tidb"
	COMPONENT_PD   = "pd"
	COMPONENT_TIKV = "tikv"
)

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute executes the root command.

func WriteFile

func WriteFile(filePath string, content string) error

Types

type ConstraintInfo

type ConstraintInfo struct {
	ConKey    string
	ConOp     pkg.LabelConstraintOp
	ConValues []string
	ConRole   pkg.PeerRoleType
}

type DatabaseConnect

type DatabaseConnect struct {
	Cfg  config.DBConfig
	Conn *sql.DB
}

Jump to

Keyboard shortcuts

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