Documentation
¶
Index ¶
- type Chainkit
- func (c *Chainkit) AssignmentHandler(assignmentResult nodeSchema.AssignmentResult)
- func (c *Chainkit) Close()
- func (c *Chainkit) DownloadByPid(pid string, beginNonce, endNonce int64) (results []*schema.DownloadResult, err error)
- func (c *Chainkit) DownloadByTxid(txid string) (*goarSchema.BundleItem, error)
- func (c *Chainkit) Query(query string) ([]byte, error)
- func (c *Chainkit) Run()
- func (c *Chainkit) Upload(tx goarSchema.BundleItem) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chainkit ¶
type Chainkit struct {
// contains filtered or unexported fields
}
func (*Chainkit) AssignmentHandler ¶
func (c *Chainkit) AssignmentHandler(assignmentResult nodeSchema.AssignmentResult)
func (*Chainkit) DownloadByPid ¶
func (c *Chainkit) DownloadByPid(pid string, beginNonce, endNonce int64) (results []*schema.DownloadResult, err error)
Download all transactions of a process, from specified Nonce to latest transaction
func (*Chainkit) DownloadByTxid ¶
func (c *Chainkit) DownloadByTxid(txid string) (*goarSchema.BundleItem, error)
Download a transaction
func (*Chainkit) Upload ¶
func (c *Chainkit) Upload(tx goarSchema.BundleItem) error
Upload a BundleItem transaction. This function doesn't actually upload the transaction, but adds it to the upload queue and waits for batch processing before uploading
Click to show internal directories.
Click to hide internal directories.