chains

package
v0.0.0-...-a76d37d Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChannelPeers

func ChannelPeers(url string, req *pb.ReqChannelPeers) (interface{}, error)

ChannelPeers ChannelPeers

func GetConfig

func GetConfig(url string, req *pb.ReqConfig) (interface{}, error)

GetConfig 获取区块链配置信息

func InitConfig

func InitConfig(url string, req *pb.ReqInit) (interface{}, error)

InitConfig 初始化区块链配置信息

func ListConfig

func ListConfig(url string, req *pb.ReqConfigList) (interface{}, error)

ListConfig 获取区块链配置信息ID集合

func LocalPeers

func LocalPeers(url string, req *pb.ReqLocalPeers) (interface{}, error)

LocalPeers LocalPeers

Types

type CAServer

type CAServer struct{}

func (*CAServer) AddAffiliation

func (ca *CAServer) AddAffiliation(ctx context.Context, req *pb.ReqAddAffiliation) (*pb.ResultAffiliation, error)

func (*CAServer) CreateIdentity

func (ca *CAServer) CreateIdentity(ctx context.Context, req *pb.ReqCreateIdentity) (*pb.ResultIdentityResponse, error)

func (*CAServer) CreateSigningIdentity

func (ca *CAServer) CreateSigningIdentity(ctx context.Context, req *pb.ReqCreateSigningIdentity) (*pb.ResultSigningIdentityResponse, error)

func (*CAServer) Enroll

func (ca *CAServer) Enroll(ctx context.Context, req *pb.ReqEnroll) (*pb.Result, error)

func (*CAServer) GetAffiliation

func (ca *CAServer) GetAffiliation(ctx context.Context, req *pb.ReqGetAffiliation) (*pb.ResultAffiliation, error)

func (*CAServer) GetAffiliationByCaName

func (ca *CAServer) GetAffiliationByCaName(ctx context.Context, req *pb.ReqGetAffiliationByCaName) (*pb.ResultAffiliation, error)

func (*CAServer) GetAllAffiliations

func (ca *CAServer) GetAllAffiliations(ctx context.Context, req *pb.ReqGetAllAffiliations) (*pb.ResultAffiliation, error)

func (*CAServer) GetAllAffiliationsByCaName

func (ca *CAServer) GetAllAffiliationsByCaName(ctx context.Context, req *pb.ReqGetAllAffiliationsByCaName) (*pb.ResultAffiliation, error)

func (*CAServer) GetAllIdentities

func (ca *CAServer) GetAllIdentities(ctx context.Context, req *pb.ReqGetAllIdentities) (*pb.ResultIdentityResponses, error)

func (*CAServer) GetAllIdentitiesByCaName

func (ca *CAServer) GetAllIdentitiesByCaName(ctx context.Context, req *pb.ReqGetAllIdentitiesByCaName) (*pb.ResultIdentityResponses, error)

func (*CAServer) GetIdentity

func (ca *CAServer) GetIdentity(ctx context.Context, req *pb.ReqGetIdentity) (*pb.ResultIdentityResponse, error)

func (*CAServer) GetIdentityByCaName

func (ca *CAServer) GetIdentityByCaName(ctx context.Context, req *pb.ReqGetIdentityByCaName) (*pb.ResultIdentityResponse, error)

func (*CAServer) GetSigningIdentity

func (ca *CAServer) GetSigningIdentity(ctx context.Context, req *pb.ReqGetSigningIdentity) (*pb.ResultSigningIdentityResponse, error)

func (*CAServer) Info

func (ca *CAServer) Info(ctx context.Context, req *pb.ReqCaInfo) (*pb.ResultCAInfo, error)

func (*CAServer) ModifyAffiliation

func (ca *CAServer) ModifyAffiliation(ctx context.Context, req *pb.ReqModifyAffiliation) (*pb.ResultAffiliation, error)

func (*CAServer) ModifyIdentity

func (ca *CAServer) ModifyIdentity(ctx context.Context, req *pb.ReqModifyIdentity) (*pb.ResultIdentityResponse, error)

func (*CAServer) Reenroll

func (ca *CAServer) Reenroll(ctx context.Context, req *pb.ReqReenroll) (*pb.Result, error)

func (*CAServer) Register

func (ca *CAServer) Register(ctx context.Context, req *pb.ReqRegister) (*pb.Result, error)

func (*CAServer) RemoveAffiliation

func (ca *CAServer) RemoveAffiliation(ctx context.Context, req *pb.ReqRemoveAffiliation) (*pb.ResultAffiliation, error)

func (*CAServer) RemoveIdentity

func (ca *CAServer) RemoveIdentity(ctx context.Context, req *pb.ReqRemoveIdentity) (*pb.ResultIdentityResponse, error)

func (*CAServer) Revoke

type ChainCodeServer

type ChainCodeServer struct {
}

func (*ChainCodeServer) InstallCC

func (c *ChainCodeServer) InstallCC(ctx context.Context, in *pb.Install) (*pb.Result, error)

func (*ChainCodeServer) InstalledCC

func (c *ChainCodeServer) InstalledCC(ctx context.Context, in *pb.Installed) (*pb.ResultCCList, error)

func (*ChainCodeServer) InstantiateCC

func (c *ChainCodeServer) InstantiateCC(ctx context.Context, in *pb.Instantiate) (*pb.Result, error)

func (*ChainCodeServer) InstantiatedCC

func (c *ChainCodeServer) InstantiatedCC(ctx context.Context, in *pb.Instantiated) (*pb.ResultCCList, error)

func (*ChainCodeServer) InvokeCC

func (c *ChainCodeServer) InvokeCC(ctx context.Context, in *pb.Invoke) (*pb.Result, error)

func (*ChainCodeServer) InvokeCCAsync

func (c *ChainCodeServer) InvokeCCAsync(ctx context.Context, in *pb.InvokeAsync) (*pb.Result, error)

func (*ChainCodeServer) QueryCC

func (c *ChainCodeServer) QueryCC(ctx context.Context, in *pb.Query) (*pb.Result, error)

func (*ChainCodeServer) UpgradeCC

func (c *ChainCodeServer) UpgradeCC(ctx context.Context, in *pb.Upgrade) (*pb.Result, error)

func (*ChainCodeServer) UploadCC

type ChannelServer

type ChannelServer struct {
}

func (*ChannelServer) Create

func (c *ChannelServer) Create(ctx context.Context, in *pb.ChannelCreate) (*pb.Result, error)

func (*ChannelServer) Join

func (c *ChannelServer) Join(ctx context.Context, in *pb.ChannelJoin) (*pb.Result, error)

func (*ChannelServer) List

func (c *ChannelServer) List(ctx context.Context, in *pb.ChannelList) (*pb.ResultArr, error)

type ConfigServer

type ConfigServer struct {
}

func (*ConfigServer) GetConfig

func (c *ConfigServer) GetConfig(ctx context.Context, in *pb.ReqConfig) (*pb.ResultConfig, error)

func (*ConfigServer) InitConfig

func (c *ConfigServer) InitConfig(ctx context.Context, in *pb.ReqInit) (*pb.Result, error)

func (*ConfigServer) ListConfig

func (c *ConfigServer) ListConfig(ctx context.Context, in *pb.ReqConfigList) (*pb.ResultConfigList, error)

func (*ConfigServer) RecoverConfig

func (c *ConfigServer) RecoverConfig(ctx context.Context, in *pb.ReqConfigRecover) (*pb.Result, error)

type LedgerServer

type LedgerServer struct {
}

func (*LedgerServer) QueryLedgerBlockByHash

func (l *LedgerServer) QueryLedgerBlockByHash(ctx context.Context, in *pb.ReqBlockByHash) (*pb.ResultBlock, error)

func (*LedgerServer) QueryLedgerBlockByHashSpec

func (l *LedgerServer) QueryLedgerBlockByHashSpec(ctx context.Context, in *pb.ReqBlockByHashSpec) (*pb.ResultBlock, error)

func (*LedgerServer) QueryLedgerBlockByHeight

func (l *LedgerServer) QueryLedgerBlockByHeight(ctx context.Context, in *pb.ReqBlockByHeight) (*pb.ResultBlock, error)

func (*LedgerServer) QueryLedgerBlockByHeightSpec

func (l *LedgerServer) QueryLedgerBlockByHeightSpec(ctx context.Context, in *pb.ReqBlockByHeightSpec) (*pb.ResultBlock, error)

func (*LedgerServer) QueryLedgerBlockByTxID

func (l *LedgerServer) QueryLedgerBlockByTxID(ctx context.Context, in *pb.ReqBlockByTxID) (*pb.ResultBlock, error)

func (*LedgerServer) QueryLedgerBlockByTxIDSpec

func (l *LedgerServer) QueryLedgerBlockByTxIDSpec(ctx context.Context, in *pb.ReqBlockByTxIDSpec) (*pb.ResultBlock, error)

func (*LedgerServer) QueryLedgerInfo

func (l *LedgerServer) QueryLedgerInfo(ctx context.Context, in *pb.ReqInfo) (*pb.ResultChannelInfo, error)

func (*LedgerServer) QueryLedgerInfoSpec

func (l *LedgerServer) QueryLedgerInfoSpec(ctx context.Context, in *pb.ReqInfoSpec) (*pb.ResultChannelInfo, error)

type PeerServer

type PeerServer struct {
}

func (*PeerServer) ChannelPeers

func (p *PeerServer) ChannelPeers(ctx context.Context, in *pb.ReqChannelPeers) (*pb.ResultPeers, error)

func (*PeerServer) LocalPeers

func (p *PeerServer) LocalPeers(ctx context.Context, in *pb.ReqLocalPeers) (*pb.ResultPeers, error)

Jump to

Keyboard shortcuts

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