Documentation ¶
Index ¶
- type FabricClient
- func (c *FabricClient) EnrollUser(body userreq.RegisterReqDataBody) error
- func (c *FabricClient) EventQuery() (*eventres.QueryResData, error)
- func (c *FabricClient) EventRegister(body eventreq.RegisterReqDataBody) (*eventres.RegisterResData, error)
- func (c *FabricClient) EventRemove(body eventreq.RemoveReqDataBody) (*resBase.BaseResModel, error)
- func (c *FabricClient) GetBlockInfo(body nodereq.BlockReqDataBody) (*noderes.BlockResData, error)
- func (c *FabricClient) GetLedgerInfo() (*noderes.LedgerResData, error)
- func (c *FabricClient) GetTransInfo(body nodereq.TxTransReqDataBody) (*noderes.TransactionResData, error)
- func (c *FabricClient) RegisterUser(body userreq.RegisterReqDataBody) (*userres.RegisterResData, error)
- func (c *FabricClient) ReqChainCode(body nodereq.TransReqDataBody) (*noderes.TranResData, error)
- func (c *FabricClient) SdkTran(body nodereq.TransReqDataBody) (*noderes.TranResData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FabricClient ¶
func InitFabricClient ¶
func InitFabricClient(config *config.Config) (*FabricClient, error)
初始化 fabric请求的client
func (*FabricClient) EnrollUser ¶
func (c *FabricClient) EnrollUser(body userreq.RegisterReqDataBody) error
func (*FabricClient) EventQuery ¶
func (c *FabricClient) EventQuery() (*eventres.QueryResData, error)
func (*FabricClient) EventRegister ¶
func (c *FabricClient) EventRegister(body eventreq.RegisterReqDataBody) (*eventres.RegisterResData, error)
func (*FabricClient) EventRemove ¶
func (c *FabricClient) EventRemove(body eventreq.RemoveReqDataBody) (*resBase.BaseResModel, error)
func (*FabricClient) GetBlockInfo ¶
func (c *FabricClient) GetBlockInfo(body nodereq.BlockReqDataBody) (*noderes.BlockResData, error)
func (*FabricClient) GetLedgerInfo ¶
func (c *FabricClient) GetLedgerInfo() (*noderes.LedgerResData, error)
func (*FabricClient) GetTransInfo ¶
func (c *FabricClient) GetTransInfo(body nodereq.TxTransReqDataBody) (*noderes.TransactionResData, error)
func (*FabricClient) RegisterUser ¶
func (c *FabricClient) RegisterUser(body userreq.RegisterReqDataBody) (*userres.RegisterResData, error)
func (*FabricClient) ReqChainCode ¶
func (c *FabricClient) ReqChainCode(body nodereq.TransReqDataBody) (*noderes.TranResData, error)
func (*FabricClient) SdkTran ¶
func (c *FabricClient) SdkTran(body nodereq.TransReqDataBody) (*noderes.TranResData, error)
Click to show internal directories.
Click to hide internal directories.