distro

package
v0.0.0-...-08b9edc Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Overview

Package distro provides a type-safe distribution resource framework. Distribution resource determines how component names are displayed in errors, logs and so on. For example, a distribution resource can define "TiDB" to be displayed as "MyTiDB".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceGlobal

func ReplaceGlobal(r DistributionResource) func()

ReplaceGlobal replaces the global distribution resource with the specified one. Missing fields in the resource will be filled using default values.

Types

type DistributionResource

type DistributionResource struct {
	TiDB    string `json:"tidb,omitempty"`
	TiKV    string `json:"tikv,omitempty"`
	PD      string `json:"pd,omitempty"`
	TiFlash string `json:"tiflash,omitempty"`
}

func R

R gets the current global distribution resource. The returned value must NOT be modified.

Jump to

Keyboard shortcuts

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