Documentation ¶
Index ¶
- Constants
- func ResultFail(ctx *gin.Context, err interface{})
- func ResultFailData(ctx *gin.Context, data interface{}, err interface{})
- func ResultMap(ctx *gin.Context, m map[string]interface{})
- func ResultMsg(ctx *gin.Context, msg string)
- func ResultOk(ctx *gin.Context, data interface{})
- func ResultOkMsg(ctx *gin.Context, data interface{}, msg string)
- type ChainDomain
- type FabricChain
- type FabricChannel
- type K8sData
- type Namespace
- type RespData
Constants ¶
View Source
const ( Success = iota Fail )
Variables ¶
This section is empty.
Functions ¶
func ResultFail ¶
func ResultFailData ¶
func ResultOkMsg ¶
Types ¶
type ChainDomain ¶
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 (FabricChain) GetAnchorsTxs ¶
func (f FabricChain) GetAnchorsTxs(artifactPath string) []string
func (FabricChain) GetChannelTx ¶
func (f FabricChain) GetChannelTx(artifactPath string) string
func (FabricChain) GetFirstOrderer ¶
func (f FabricChain) GetFirstOrderer() string
func (FabricChain) GetHostDomain ¶
func (f FabricChain) GetHostDomain(org string) string
func (FabricChain) GetNamesapces ¶
func (f FabricChain) GetNamesapces() string
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 (FabricChannel) GetChain ¶
func (f FabricChannel) GetChain() FabricChain
func (FabricChannel) GetChaincodeGithub ¶
func (f FabricChannel) GetChaincodeGithub() string
func (FabricChannel) GetChaincodeGithubFile ¶
func (f FabricChannel) GetChaincodeGithubFile() string
func (FabricChannel) GetChaincodeLocalGithub ¶
func (f FabricChannel) GetChaincodeLocalGithub() string
Click to show internal directories.
Click to hide internal directories.