Documentation ¶
Index ¶
- func ChannelPeers(url string, req *pb.ReqChannelPeers) (interface{}, error)
- func GetConfig(url string, req *pb.ReqConfig) (interface{}, error)
- func InitConfig(url string, req *pb.ReqInit) (interface{}, error)
- func ListConfig(url string, req *pb.ReqConfigList) (interface{}, error)
- func LocalPeers(url string, req *pb.ReqLocalPeers) (interface{}, error)
- type CAServer
- func (ca *CAServer) AddAffiliation(ctx context.Context, req *pb.ReqAddAffiliation) (*pb.ResultAffiliation, error)
- func (ca *CAServer) CreateIdentity(ctx context.Context, req *pb.ReqCreateIdentity) (*pb.ResultIdentityResponse, error)
- func (ca *CAServer) CreateSigningIdentity(ctx context.Context, req *pb.ReqCreateSigningIdentity) (*pb.ResultSigningIdentityResponse, error)
- func (ca *CAServer) Enroll(ctx context.Context, req *pb.ReqEnroll) (*pb.Result, error)
- func (ca *CAServer) GetAffiliation(ctx context.Context, req *pb.ReqGetAffiliation) (*pb.ResultAffiliation, error)
- func (ca *CAServer) GetAffiliationByCaName(ctx context.Context, req *pb.ReqGetAffiliationByCaName) (*pb.ResultAffiliation, error)
- func (ca *CAServer) GetAllAffiliations(ctx context.Context, req *pb.ReqGetAllAffiliations) (*pb.ResultAffiliation, error)
- func (ca *CAServer) GetAllAffiliationsByCaName(ctx context.Context, req *pb.ReqGetAllAffiliationsByCaName) (*pb.ResultAffiliation, error)
- func (ca *CAServer) GetAllIdentities(ctx context.Context, req *pb.ReqGetAllIdentities) (*pb.ResultIdentityResponses, error)
- func (ca *CAServer) GetAllIdentitiesByCaName(ctx context.Context, req *pb.ReqGetAllIdentitiesByCaName) (*pb.ResultIdentityResponses, error)
- func (ca *CAServer) GetIdentity(ctx context.Context, req *pb.ReqGetIdentity) (*pb.ResultIdentityResponse, error)
- func (ca *CAServer) GetIdentityByCaName(ctx context.Context, req *pb.ReqGetIdentityByCaName) (*pb.ResultIdentityResponse, error)
- func (ca *CAServer) GetSigningIdentity(ctx context.Context, req *pb.ReqGetSigningIdentity) (*pb.ResultSigningIdentityResponse, error)
- func (ca *CAServer) Info(ctx context.Context, req *pb.ReqCaInfo) (*pb.ResultCAInfo, error)
- func (ca *CAServer) ModifyAffiliation(ctx context.Context, req *pb.ReqModifyAffiliation) (*pb.ResultAffiliation, error)
- func (ca *CAServer) ModifyIdentity(ctx context.Context, req *pb.ReqModifyIdentity) (*pb.ResultIdentityResponse, error)
- func (ca *CAServer) Reenroll(ctx context.Context, req *pb.ReqReenroll) (*pb.Result, error)
- func (ca *CAServer) Register(ctx context.Context, req *pb.ReqRegister) (*pb.Result, error)
- func (ca *CAServer) RemoveAffiliation(ctx context.Context, req *pb.ReqRemoveAffiliation) (*pb.ResultAffiliation, error)
- func (ca *CAServer) RemoveIdentity(ctx context.Context, req *pb.ReqRemoveIdentity) (*pb.ResultIdentityResponse, error)
- func (ca *CAServer) Revoke(ctx context.Context, req *pb.ReqRevoke) (*pb.ResultRevocationResponse, error)
- type ChainCodeServer
- func (c *ChainCodeServer) InstallCC(ctx context.Context, in *pb.Install) (*pb.Result, error)
- func (c *ChainCodeServer) InstalledCC(ctx context.Context, in *pb.Installed) (*pb.ResultCCList, error)
- func (c *ChainCodeServer) InstantiateCC(ctx context.Context, in *pb.Instantiate) (*pb.Result, error)
- func (c *ChainCodeServer) InstantiatedCC(ctx context.Context, in *pb.Instantiated) (*pb.ResultCCList, error)
- func (c *ChainCodeServer) InvokeCC(ctx context.Context, in *pb.Invoke) (*pb.Result, error)
- func (c *ChainCodeServer) InvokeCCAsync(ctx context.Context, in *pb.InvokeAsync) (*pb.Result, error)
- func (c *ChainCodeServer) QueryCC(ctx context.Context, in *pb.Query) (*pb.Result, error)
- func (c *ChainCodeServer) UpgradeCC(ctx context.Context, in *pb.Upgrade) (*pb.Result, error)
- func (c *ChainCodeServer) UploadCC(stream pb.LedgerChainCode_UploadCCServer) error
- type ChannelServer
- type ConfigServer
- func (c *ConfigServer) GetConfig(ctx context.Context, in *pb.ReqConfig) (*pb.ResultConfig, error)
- func (c *ConfigServer) InitConfig(ctx context.Context, in *pb.ReqInit) (*pb.Result, error)
- func (c *ConfigServer) ListConfig(ctx context.Context, in *pb.ReqConfigList) (*pb.ResultConfigList, error)
- func (c *ConfigServer) RecoverConfig(ctx context.Context, in *pb.ReqConfigRecover) (*pb.Result, error)
- type LedgerServer
- func (l *LedgerServer) QueryLedgerBlockByHash(ctx context.Context, in *pb.ReqBlockByHash) (*pb.ResultBlock, error)
- func (l *LedgerServer) QueryLedgerBlockByHashSpec(ctx context.Context, in *pb.ReqBlockByHashSpec) (*pb.ResultBlock, error)
- func (l *LedgerServer) QueryLedgerBlockByHeight(ctx context.Context, in *pb.ReqBlockByHeight) (*pb.ResultBlock, error)
- func (l *LedgerServer) QueryLedgerBlockByHeightSpec(ctx context.Context, in *pb.ReqBlockByHeightSpec) (*pb.ResultBlock, error)
- func (l *LedgerServer) QueryLedgerBlockByTxID(ctx context.Context, in *pb.ReqBlockByTxID) (*pb.ResultBlock, error)
- func (l *LedgerServer) QueryLedgerBlockByTxIDSpec(ctx context.Context, in *pb.ReqBlockByTxIDSpec) (*pb.ResultBlock, error)
- func (l *LedgerServer) QueryLedgerInfo(ctx context.Context, in *pb.ReqInfo) (*pb.ResultChannelInfo, error)
- func (l *LedgerServer) QueryLedgerInfoSpec(ctx context.Context, in *pb.ReqInfoSpec) (*pb.ResultChannelInfo, error)
- type PeerServer
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 InitConfig ¶
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) 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) 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) 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)
type ChainCodeServer ¶
type ChainCodeServer struct { }
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) InvokeCCAsync ¶
func (c *ChainCodeServer) InvokeCCAsync(ctx context.Context, in *pb.InvokeAsync) (*pb.Result, error)
func (*ChainCodeServer) UploadCC ¶
func (c *ChainCodeServer) UploadCC(stream pb.LedgerChainCode_UploadCCServer) error
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 (*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)
Click to show internal directories.
Click to hide internal directories.