Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Name string `json:"name" xorm:"not null VARCHAR(64)"` UserAccount string `json:"userAccount" xorm:"not null VARCHAR(100)"` Description string `json:"description" xorm:"VARCHAR(255)"` Consensus string `json:"consensus" xorm:"not null VARCHAR(10)"` PeersOrgs string `json:"peersOrgs" xorm:"not null VARCHAR(100)"` OrderCount int `json:"orderCount" xorm:"not null INT(11)"` PeerCount int `json:"peerCount" xorm:"not null INT(11)"` TlsEnabled string `json:"tlsEnabled" xorm:"not null VARCHAR(5)"` Status int `json:"status" xorm:"default 0 INT(11)"` //0定义 1已构建 2运行中 3已停止 Created int64 `json:"created" xorm:"not null BIGINT(20)"` }
type Chaincode ¶
type Chaincode struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` ChaincodeName string `json:"chaincodeName" xorm:"not null VARCHAR(64)"` ChannelId int `json:"channelId" xorm:"not null INT(11)"` UserAccount string `json:"userAccount" xorm:"not null VARCHAR(100)"` Created int64 `json:"created" xorm:"not null BIGINT(20)"` Version string `json:"version" xorm:"VARCHAR(10)"` Status int `json:"status" xorm:"default 0 INT(11)"` GithubPath string `json:"githubPath" xorm:"VARCHAR(256)"` Args string `json:"args" xorm:"not null VARCHAR(500)"` Policy string `json:"policy" xorm:"not null VARCHAR(200)"` }
type Channel ¶
type Channel struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` ChainId int `json:"chainId" xorm:"not null INT(11)"` Orgs string `json:"orgs" xorm:"not null VARCHAR(255)"` ChannelName string `json:"channelName" xorm:"not null VARCHAR(64)"` UserAccount string `json:"userAccount" xorm:"not null VARCHAR(100)"` Created int64 `json:"created" xorm:"not null BIGINT(20)"` }
type FabricChain ¶
type FabricChain struct { ChainName string `json:"chainName"` Account string `json:"account"` //用户帐号 Consensus string `json:"consensus"` //共识 PeersOrgs []string `json:"peersOrgs"` //参与组织 除了orderer OrderCount int `json:"orderCount"` //orderer节点个数 PeerCount int `json:"peerCount"` //每个组织节点个数 ChannelName string `json:"channelName"` //channel 名 TlsEnabled string `json:"tlsEnabled"` //是否开启tls true or false }
func ParseFabircChain ¶
func ParseFabircChain(chain *Chain) FabricChain
func ParseFabircChainAndChannel ¶
func ParseFabircChainAndChannel(chain *Chain, channel *Channel) FabricChain
type FabricChannel ¶
type FabricChannel struct { FabricChain ChaincodeId string `json:"chaincodeId"` ChaincodePath string `json:"chaincodePath"` ChaincodeBytes []byte `json:"chaincodeBytes"` Version string `json:"version"` Policy string `json:"policy"` Args [][]byte `json:"args"` }
func ParseFabircChannel ¶
func ParseFabircChannel(chain FabricChain, cc *Chaincode) FabricChannel
type User ¶
type User struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Account string `json:"account" xorm:"not null unique VARCHAR(30)"` Password string `json:"password" xorm:"not null VARCHAR(100)"` Avatar string `json:"avatar" xorm:"VARCHAR(200)"` Name string `json:"name" xorm:"not null VARCHAR(20)"` Created int64 `json:"created" xorm:"not null BIGINT(20)"` }
type UserDetail ¶
Click to show internal directories.
Click to hide internal directories.