configtx

package
v0.0.0-...-e3e94bd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator interface {
	// 验证是否尝试应用 configtx 以成为新配置。
	Validate(configEnv *pbcommon.ConfigEnvelope) error

	// 根据当前配置状态验证新的 configtx。
	ProposeConfigUpdate(configtx *pbcommon.Envelope) (*pbcommon.ConfigEnvelope, error)

	// 检索与此管理器关联的通道 ID。
	ChannelID() string

	// ConfigProto 返回当前的配置信息。
	ConfigProto() *pbcommon.Config

	// 返回当前配置的序号。
	Sequence() uint64
}

Validator 提供了一种机制,用于提出配置更新建议、查看配置更新结果和验证配置更新结果。

Jump to

Keyboard shortcuts

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