api

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

Documentation

Index

Constants

View Source
const (
	CODE_SUCCESS      int    = 0
	CODE_ERROR_BODY   int    = 101
	CODE_ERROR_MASHAL int    = 102
	CODE_ERROR_EXE    int    = 103
	CODE_ERROR_CONFIG int    = 103
	MSG_SUCCESS       string = "success"
	MSG_ERROR         string = "error"
)
View Source
const (
	LOOP_COUNT int = 30
)

Variables

This section is empty.

Functions

func Start

func Start(port string)

Types

type ApiRet

type ApiRet struct {
	Code    int         `json:"code"`    //error code, 0 if success
	Message string      `json:"message"` //description message
	Data    interface{} `json:"data"`    //return data in this member
}

All interface of platformSrv return struct

type ClusterDelete

type ClusterDelete struct {
	ClusterId string `json:"ClusterId"`
	Creator   string `json:"Creator"`
}

type Delete

type Delete struct {
	ClusterId      string `json:"ClusterId"`
	BlockChainName string `json:"BlockChainName"`
}

type Deploy

type Deploy struct {
	AllianceId     string      `json:"AllianceId,omitempty"`
	BlockChainName string      `json:"BlockChainName"`
	BlockChainType string      `json:"BlockChainType"`
	DeployCfg      interface{} `json:"DeployCfg"`
}

type FabricCCCallPara

type FabricCCCallPara struct {
	BlockChainId string   `json:"BlockChainId"`
	OrgName      string   `json:"OrgName"`
	ChannelId    string   `json:"ChannelId"`
	ChainCodeId  string   `json:"ChainCodeId"`
	Args         []string `json:"Args"`
	Peers        []string `json:"Peers"`
}

type FabricCCQueryPara

type FabricCCQueryPara struct {
	BlockChainId string   `json:"BlockChainId"`
	OrgName      string   `json:"OrgName"`
	ChannelId    string   `json:"ChannelId"`
	ChainCodeId  string   `json:"ChainCodeId"`
	Args         []string `json:"Args"`
}

type FabricDeployCCPara

type FabricDeployCCPara struct {
	BlockChainId     string   `json:"BlockChainId"`
	OrgName          string   `json:"OrgName"`
	ChannelId        string   `json:"ChannelId"`
	ChainCodeId      string   `json:"ChainCodeId"`
	ChainCodeVersion string   `json:"ChainCodeVersion"`
	EndorsePolicy    string   `json:"EndorsePolicy,omitempty"`
	ChaincodePkg     string   `json:"ChaincodePkg,omitempty"`
	ChaincodeSeq     string   `json:"ChaincodeSeq,omitempty"`
	InitArgs         []string `json:"InitArgs"`
}

type FabricInstantialCCPara

type FabricInstantialCCPara struct {
	BlockChainId string `json:"BlockChainId"`
	OrgName      string `json:"OrgName"`
	ChannelId    string `json:"ChannelId"`
}

Jump to

Keyboard shortcuts

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