Documentation ¶
Index ¶
- Constants
- func ComputeDeltaSet(readSet, writeSet map[string]comparable) map[string]comparable
- func MapConfig(channelGroup *cb.ConfigGroup, rootGroupKey string) (map[string]comparable, error)
- func NewManagerImpl(envConfig *cb.Envelope, initializer api.Proposer) (api.Manager, error)
- 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 UnmarshalConfigUpdateOrPanic(data []byte) *cb.ConfigUpdate
Constants ¶
const ( GroupPrefix = "[Groups] " ValuePrefix = "[Values] " PolicyPrefix = "[Policy] " // The plurarility doesn't match, but, it makes the logs much easier being the same length as "Groups" and "Values" PathSeparator = "/" )
Variables ¶
This section is empty.
Functions ¶
func ComputeDeltaSet ¶
func MapConfig ¶
func MapConfig(channelGroup *cb.ConfigGroup, rootGroupKey string) (map[string]comparable, error)
MapConfig is intended to be called outside this file it takes a ConfigGroup and generates a map of fqPath to comparables (or error on invalid keys)
func NewManagerImpl ¶
func UnmarshalConfig ¶
UnmarshalConfig attempts to unmarshal bytes to a *cb.Config
func UnmarshalConfigEnvelope ¶
func UnmarshalConfigEnvelope(data []byte) (*cb.ConfigEnvelope, error)
UnmarshalConfigEnvelope attempts to unmarshal bytes to a *cb.ConfigEnvelope
func UnmarshalConfigEnvelopeOrPanic ¶
func UnmarshalConfigEnvelopeOrPanic(data []byte) *cb.ConfigEnvelope
UnmarshalConfigEnvelope attempts to unmarshal bytes to a *cb.ConfigEnvelope or panics
func UnmarshalConfigOrPanic ¶
UnmarshalConfig attempts to unmarshal bytes to a *cb.Config
func UnmarshalConfigUpdate ¶
func UnmarshalConfigUpdate(data []byte) (*cb.ConfigUpdate, error)
UnmarshalConfigUpdate attempts to unmarshal bytes to a *cb.ConfigUpdate
func UnmarshalConfigUpdateEnvelope ¶
func UnmarshalConfigUpdateEnvelope(data []byte) (*cb.ConfigUpdateEnvelope, error)
UnmarshalConfigUpdateEnvelope attempts to unmarshal bytes to a *cb.ConfigUpdate
func UnmarshalConfigUpdateEnvelopeOrPanic ¶
func UnmarshalConfigUpdateEnvelopeOrPanic(data []byte) *cb.ConfigUpdateEnvelope
UnmarshalConfigUpdateEnvelope attempts to unmarshal bytes to a *cb.ConfigUpdateEnvelope or panics
func UnmarshalConfigUpdateOrPanic ¶
func UnmarshalConfigUpdateOrPanic(data []byte) *cb.ConfigUpdate
UnmarshalConfigUpdate attempts to unmarshal bytes to a *cb.ConfigUpdate or panics
Types ¶
This section is empty.