public

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: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SYS_CHANNEL             string = "testchainid"
	BLOCK_CHAIN_TYPE_FABRIC string = "fabric"
	SOLO_FABRIC             string = "SOLO_FABRIC"
	KAFKA_FABRIC            string = "KAFKA_FABRIC"
	RAFT_FABRIC             string = "RAFT_FABRIC"
	ZOOK_COUNT              int    = 3
	KAFKA_COUNT             int    = 4
	CC_DEPLOY_OK            uint64 = 0
	CC_DEPLOY_ING           uint64 = 101
	CC_DEPLOY_FAILED        uint64 = 102
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AddOrgConfig

type AddOrgConfig struct {
	BlockChainId string    `json:"BlockChainId"`
	PeerOrgs     []OrgSpec `json:"PeerOrgs"`
}

type CCRecordSt

type CCRecordSt struct {
	BlockChainId   string        `json:"BlockChainId"`
	BlockChainName string        `json:"BlockChainName"`
	ChCC           []ChannelCCSt `json:"ChCC"`
}

type CCSt

type CCSt struct {
	BlockChainId   string `json:"BlockChainId"`
	BlockChainName string `json:"BlockChainName"`
	CCName         string `json:"CCName"`
	CCVersion      string `json:"CCVersion"`
	CreateTime     string `json:"CreateTime"`
	UpdateTime     string `json:"UpdateTime"`
	Status         uint64 `json:Status` //0:success,101:deploying,102:deploy failed
}

type ChannelCCSt

type ChannelCCSt struct {
	ChainnnelId string `json:"ChainnnelId"`
	CCRecord    []CCSt `json:"CCRecord"`
}

type ChannelList

type ChannelList struct {
	Channels []struct {
		ChannelID string `json:"channel_id"`
	} `json:"channels"`
}

type ChannelTxSt

type ChannelTxSt struct {
	BlockChainId string `json:"BlockChainId"`
	ChainnnelId  string `json:"ChainnnelId"`
	Height       uint64 `json:"Height"`
	TxCount      uint64 `json:"TxCount"`
}

type DeployNetConfig

type DeployNetConfig struct {
	OrdererOrgs         []OrgSpec `json:"OrdererOrgs"`
	PeerOrgs            []OrgSpec `json:"PeerOrgs"`
	KafkaDeployNode     string    `json:"KafkaDeployNode"`
	ZookeeperDeployNode string    `json:"ZookeeperDeployNode"`
	ToolsDeployNode     string    `json:"ToolsDeployNode"`
}

type DeployPara

type DeployPara struct {
	DeployNetCfg DeployNetConfig `json:"DeployNetCfg"`
	DeployType   string          `json:"DeployType"`
	Version      string          `json:"Version"`
	CryptoType   string          `json:"CryptoType"`
	ClusterId    string          `json:"ClusterId"`
}

type NodeSpec

type NodeSpec struct {
	Hostname string `json:"Hostname"`
}

type OrgSpec

type OrgSpec struct {
	Name       string     `json:"Name"`
	Domain     string     `json:"Domain"`
	DeployNode string     `json:"DeployNode"`
	Specs      []NodeSpec `json:"Specs"`
	Users      UsersSpec  `json:"Users"`
}

type ServiceNodePortSt

type ServiceNodePortSt struct {
	ServerName string
	NodePort   string
}

type TxRecordSt

type TxRecordSt struct {
	BlockChainId string        `json:"BlockChainId"`
	ChTx         []ChannelTxSt `json:"ChTx"`
}

type UsersSpec

type UsersSpec struct {
	Count int `json:"Count"`
}

Jump to

Keyboard shortcuts

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