txgenerate

package
v0.0.0-...-1a1319b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAddOrgCfg

func CreateAddOrgCfg(txCfgPath string, outFile string, orgName string) bool

func CreateAnchorTx

func CreateAnchorTx(cfgTxPath string, channelName string, outputPath string, orgs []string) bool

func CreateChannelTx

func CreateChannelTx(cfgTxPath string, channelName string, outputPath string) bool

func CreateGenesisBlock

func CreateGenesisBlock(cfgTxPath string, channelName string, outputPath string) bool

Types

type AnchorPeer

type AnchorPeer struct {
	Host string `yaml:"Host"`
	Port int    `yaml:"Port"`
}

type ConfigTxYaml

type ConfigTxYaml struct {
	Organizations []Organization `yaml:"Organizations"`
	Orderer       Orderers       `yaml:"Orderer"`
	Application   struct {
		Organizations interface{} `yaml:"Organizations"`
	} `yaml:"Application"`
	Profiles struct {
		TwoOrgsOrdererGenesis struct {
			Orderer     Orderers `yaml:"Orderer"`
			Consortiums struct {
				SampleConsortium struct {
					Organizations []Organization `yaml:"Organizations"`
				} `yaml:"SampleConsortium"`
			} `yaml:"Consortiums"`
		} `yaml:"TwoOrgsOrdererGenesis"`
		TwoOrgsChannel struct {
			Consortium  string `yaml:"Consortium"`
			Application struct {
				Organizations []Organization `yaml:"Organizations"`
			} `yaml:"Application"`
		} `yaml:"TwoOrgsChannel"`
	} `yaml:"Profiles"`
}

type Kafkas

type Kafkas struct {
	Brokers []string `yaml:"Brokers"`
}

type Orderers

type Orderers struct {
	OrdererType  string   `yaml:"OrdererType"`
	Addresses    []string `yaml:"Addresses"`
	BatchTimeout string   `yaml:"BatchTimeout"`
	BatchSize    struct {
		MaxMessageCount   int    `yaml:"MaxMessageCount"`
		AbsoluteMaxBytes  string `yaml:"AbsoluteMaxBytes"`
		PreferredMaxBytes string `yaml:"PreferredMaxBytes"`
	} `yaml:"BatchSize"`
	Kafka         Kafkas      `yaml:"Kafka"`
	Organizations interface{} `yaml:"Organizations"`
}

type Organization

type Organization struct {
	Name        string       `yaml:"Name"`
	ID          string       `yaml:"ID"`
	MSPDir      string       `yaml:"MSPDir"`
	AnchorPeers []AnchorPeer `yaml:"AnchorPeers,omitempty"`
}

Directories

Path Synopsis
pkg
errors
Package errors provides simple error handling primitives.
Package errors provides simple error handling primitives.

Jump to

Keyboard shortcuts

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