Versions in this module Expand all Collapse all v2 v2.3.2 Nov 21, 2021 Changes in this version + var ChannelAllowedChars = "[a-z][a-z0-9.-]*" + var MaxLength = 249 + func UnmarshalConfig(data []byte) (*cb.Config, error) + func UnmarshalConfigEnvelope(data []byte) (*cb.ConfigEnvelope, error) + func UnmarshalConfigEnvelopeOrPanic(data []byte) *cb.ConfigEnvelope + func UnmarshalConfigOrPanic(data []byte) *cb.Config + func UnmarshalConfigUpdate(data []byte) (*cb.ConfigUpdate, error) + func UnmarshalConfigUpdateEnvelope(data []byte) (*cb.ConfigUpdateEnvelope, error) + func UnmarshalConfigUpdateEnvelopeOrPanic(data []byte) *cb.ConfigUpdateEnvelope + func UnmarshalConfigUpdateFromPayload(payload *cb.Payload) (*cb.ConfigUpdate, error) + func UnmarshalConfigUpdateOrPanic(data []byte) *cb.ConfigUpdate + func ValidateChannelID(channelID string) error + type Validator interface + ChannelID func() string + ConfigProto func() *cb.Config + ProposeConfigUpdate func(configtx *cb.Envelope) (*cb.ConfigEnvelope, error) + Sequence func() uint64 + Validate func(configEnv *cb.ConfigEnvelope) error + type ValidatorImpl struct + func NewValidatorImpl(channelID string, config *cb.Config, namespace string, pm policies.Manager) (*ValidatorImpl, error) + func (vi *ValidatorImpl) ChannelID() string + func (vi *ValidatorImpl) ConfigProto() *cb.Config + func (vi *ValidatorImpl) ProposeConfigUpdate(configtx *cb.Envelope) (*cb.ConfigEnvelope, error) + func (vi *ValidatorImpl) Sequence() uint64 + func (vi *ValidatorImpl) Validate(configEnv *cb.ConfigEnvelope) error Other modules containing this package github.com/waszqt/fabric