Documentation ¶
Overview ¶
Package decorator contains all implementations of LabelStrategy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelKey ¶
type LabelKey struct { Key string `json:"key" binding:"required"` Labels []string `json:"labels" binding:"required"` }
LabelKey is the decoration key.
type LabelStrategy ¶
type LabelStrategy interface { Background() CrossBorder(startKey, endKey string) bool Label(key string) LabelKey }
LabelStrategy requires cross-border determination and key decoration scheme.
func TiDBLabelStrategy ¶
func TiDBLabelStrategy(ctx context.Context, cfg *config.Config, provider *region.PDDataProvider, httpClient *http.Client) LabelStrategy
TiDBLabelStrategy implements the LabelStrategy interface. Get Label Information from TiDB.
Click to show internal directories.
Click to hide internal directories.