configtxlator

package
v0.0.0-...-f7d5a40 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compute

func Compute(original, updated *cb.Config) (*cb.ConfigUpdate, error)

func ComputeUpdt

func ComputeUpdt(origIn, updtIn []byte, channelID string) ([]byte, error)

QueryChannelConfig used to query latest channel config block

func ConfigToJSON

func ConfigToJSON(jsonconfig map[string]interface{})

func DecodeProto

func DecodeProto(msgName string, configBytes []byte) (map[string]interface{}, error)

QueryChannelConfig used to query latest channel config block

func EncodeProto

func EncodeProto(msgName string, configBytes []byte) ([]byte, error)

QueryChannelConfig used to query latest channel config block

func EncodeProtoOrig

func EncodeProtoOrig(msgName string, input map[string]interface{}) ([]byte, error)

EncodeProtoOrig to encode config group to Proto []byte

func JSONtoConfig

func JSONtoConfig(filename string) (map[string]interface{}, error)

func JSONtoConfig(r io.Reader) error {

Types

This section is empty.

Jump to

Keyboard shortcuts

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