models

package
v0.0.0-...-3986ddd Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	Success = iota
	Fail
)

Variables

This section is empty.

Functions

func ResultFail

func ResultFail(ctx *gin.Context, err interface{})

func ResultFailData

func ResultFailData(ctx *gin.Context, data interface{}, err interface{})

func ResultMap

func ResultMap(ctx *gin.Context, m map[string]interface{})

func ResultMsg

func ResultMsg(ctx *gin.Context, msg string)

func ResultOk

func ResultOk(ctx *gin.Context, data interface{})

func ResultOkMsg

func ResultOkMsg(ctx *gin.Context, data interface{}, msg string)

Types

type ChainDomain

type ChainDomain struct {
	NodeIps   []string          `json:"nodeIps"`
	NodePorts map[string]string `json:"nodePorts"`
}

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

type K8sData

type K8sData struct {
	Data [][]byte `json:"data"`
}

type Namespace

type Namespace struct {
	Namespaces string `json:"namespaces"`
}

type RespData

type RespData struct {
	Data interface{} `json:"data"`
	Msg  string      `json:"msg"`
	Code int         `json:"code"`
}

Jump to

Keyboard shortcuts

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