models

package
v0.0.1-beta15 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chaincode

type Chaincode struct {
	Name     string `json:"name"`
	Version  string `json:"version"`
	Sequence int    `json:"sequence"`
}

type CouchDBIndex

type CouchDBIndex struct {
	ID       string `json:"id"`
	Contents string `json:"contents"`
}

type CreateTenantInput

type CreateTenantInput struct {
	Name string      `json:"name"`
	Orgs []*OrgInput `json:"orgs"`
}

type DeployChaincodeInput

type DeployChaincodeInput struct {
	Name             string          `json:"name"`
	Pdc              string          `json:"pdc"`
	ChaincodeAddress string          `json:"chaincodeAddress"`
	SignaturePolicy  string          `json:"signaturePolicy"`
	Indexes          []*CouchDBIndex `json:"indexes"`
}

type DeployChaincodeResponse

type DeployChaincodeResponse struct {
	PackageID       string `json:"packageID"`
	Version         string `json:"version"`
	Sequence        int    `json:"sequence"`
	ChaincodeName   string `json:"chaincodeName"`
	PrivateKey      string `json:"privateKey"`
	Certificate     string `json:"certificate"`
	RootCertificate string `json:"rootCertificate"`
	ChannelName     string `json:"channelName"`
}

type InvokeChaincodeInput

type InvokeChaincodeInput struct {
	ChaincodeName string               `json:"chaincodeName"`
	Function      string               `json:"function"`
	Args          []string             `json:"args"`
	TransientMap  []*TransientArgument `json:"transientMap"`
}

type InvokeChaincodeResponse

type InvokeChaincodeResponse struct {
	Response        string `json:"response"`
	TransactionID   string `json:"transactionID"`
	ChaincodeStatus int    `json:"chaincodeStatus"`
}

type OrgInput

type OrgInput struct {
	Name  string `json:"name"`
	MspID string `json:"mspID"`
}

type QueryChaincodeInput

type QueryChaincodeInput struct {
	ChaincodeName string               `json:"chaincodeName"`
	Function      string               `json:"function"`
	Args          []string             `json:"args"`
	TransientMap  []*TransientArgument `json:"transientMap"`
}

type QueryChaincodeResponse

type QueryChaincodeResponse struct {
	Response        string `json:"response"`
	ChaincodeStatus int    `json:"chaincodeStatus"`
}

type Tenant

type Tenant struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	MspID string `json:"mspId"`
}

type TransientArgument

type TransientArgument struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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