adapter

package
v0.0.0-...-3f1ab7e Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyAdapter

type KeyAdapter interface {
	Encode(keys ...string) string
	Decode(key string) ([]string, error)
	Path() string
	Curry(keys ...string) KeyAdapter
}

KeyAdapter is used to construct etcd like key

var (
	DMJobKeyAdapter            KeyAdapter = keyHexEncoderDecoder("/data-flow/dm/job")
	DMInfoKeyAdapter           KeyAdapter = keyHexEncoderDecoder("/data-flow/dm/info")
	DMUnitStateAdapter         KeyAdapter = keyHexEncoderDecoder("/data-flow/dm/unit-state")
	DMDroppedColumnsKeyAdapter KeyAdapter = keyHexEncoderDecoder("/data-flow/dm/dropped-columns/")
)

Defines all key adapters

Jump to

Keyboard shortcuts

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