configure

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: MIT Imports: 1 Imported by: 0

README

configure

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {

	// GetKeyValue ...
	GetKeyValue(*Path) (map[string]string, error)

	// WatchKeyValue ...
	WatchKeyValue(*Path) chan map[string]string

	// PutKeyValue ...
	PutKeyValue(*Path, string) error

	// DelKeyValue ...
	DelKeyValue(*Path) error
}

Client 这里抽象配置中心

type Path

type Path struct {
	AppID     string
	NameSpace string
	Key       string
	Index     uint64 // CAS
	// 0--精准匹配 1--模糊匹配
	MatchRule int8
}

Path 路径信息

func (Path) Match added in v0.0.2

func (p Path) Match(k string) bool

Match 检查是否匹配

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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