Documentation ¶
Index ¶
- type Validator
- func (cm *Validator) Apply(configEnv *cb.ConfigEnvelope) error
- func (cm *Validator) ChainID() string
- func (cm *Validator) ConfigProto() *cb.Config
- func (cm *Validator) ProposeConfigUpdate(update *cb.Envelope) (*cb.ConfigEnvelope, error)
- func (cm *Validator) Sequence() uint64
- func (cm *Validator) Validate(configEnv *cb.ConfigEnvelope) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶ added in v1.1.0
type Validator struct { // ChainIDVal is returned as the result of ChainID() ChainIDVal string // SequenceVal is returned as the result of Sequence() SequenceVal uint64 // ApplyVal is returned by Apply ApplyVal error // AppliedConfigUpdateEnvelope is set by Apply AppliedConfigUpdateEnvelope *cb.ConfigEnvelope // ValidateVal is returned by Validate ValidateVal error // ProposeConfigUpdateError is returned as the error value for ProposeConfigUpdate ProposeConfigUpdateError error // ProposeConfigUpdateVal is returns as the value for ProposeConfigUpdate ProposeConfigUpdateVal *cb.ConfigEnvelope // ConfigProtoVal is returned as the value for ConfigProtoVal() ConfigProtoVal *cb.Config }
Validator is a mock implementation of configtx.Validator
func (*Validator) Apply ¶ added in v1.1.0
func (cm *Validator) Apply(configEnv *cb.ConfigEnvelope) error
Apply returns ApplyVal
func (*Validator) ConfigProto ¶ added in v1.1.0
ConfigProto returns the ConfigProtoVal
func (*Validator) ProposeConfigUpdate ¶ added in v1.1.0
ProposeConfigUpdate
Click to show internal directories.
Click to hide internal directories.