Documentation ¶
Index ¶
- type AdminClient
- type Client
- type FileInfo
- type IonianClient
- func (c *IonianClient) DownloadSegment(root common.Hash, startIndex, endIndex uint64) (data []byte, err error)
- func (c *IonianClient) DownloadSegmentWithProof(root common.Hash, index uint64) (segment *SegmentWithProof, err error)
- func (c *IonianClient) GetFileInfo(root common.Hash) (file *FileInfo, err error)
- func (c *IonianClient) GetFileInfoByTxSeq(txSeq uint64) (file *FileInfo, err error)
- func (c *IonianClient) GetStatus() (status Status, err error)
- func (c *IonianClient) UploadSegment(segment SegmentWithProof) (ret int, err error)
- type KeyValue
- type KvClient
- func (c *KvClient) GetFirst(streamId common.Hash, startIndex, length uint64, version ...uint64) (val *KeyValue, err error)
- func (c *KvClient) GetHoldingStreamIds() (streamIds []common.Hash, err error)
- func (c *KvClient) GetLast(streamId common.Hash, startIndex, length uint64, version ...uint64) (val *KeyValue, err error)
- func (c *KvClient) GetNext(streamId common.Hash, key []byte, startIndex, length uint64, inclusive bool, ...) (val *KeyValue, err error)
- func (c *KvClient) GetPrev(streamId common.Hash, key []byte, startIndex, length uint64, inclusive bool, ...) (val *KeyValue, err error)
- func (c *KvClient) GetTransactionResult(txSeq uint64) (result string, err error)
- func (c *KvClient) GetValue(streamId common.Hash, key []byte, startIndex, length uint64, version ...uint64) (val *Value, err error)
- func (c *KvClient) HasWritePermission(account common.Address, streamId common.Hash, key []byte, version ...uint64) (hasPermission bool, err error)
- func (c *KvClient) IsAdmin(account common.Address, streamId common.Hash, version ...uint64) (isAdmin bool, err error)
- func (c *KvClient) IsSpecialKey(streamId common.Hash, key []byte, version ...uint64) (isSpecialKey bool, err error)
- func (c *KvClient) IsWriterOfKey(account common.Address, streamId common.Hash, key []byte, version ...uint64) (isWriter bool, err error)
- func (c *KvClient) IsWriterOfStream(account common.Address, streamId common.Hash, version ...uint64) (isWriter bool, err error)
- type SegmentWithProof
- type Status
- type Transaction
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminClient ¶
type AdminClient struct {
// contains filtered or unexported fields
}
Admin RPCs
func (*AdminClient) GetSyncStatus ¶
func (c *AdminClient) GetSyncStatus(txSeq uint64) (status string, err error)
func (*AdminClient) Shutdown ¶
func (c *AdminClient) Shutdown() (ret int, err error)
func (*AdminClient) StartSyncFile ¶
func (c *AdminClient) StartSyncFile(txSeq uint64) (ret int, err error)
type Client ¶
type Client struct { *providers.MiddlewarableProvider // contains filtered or unexported fields }
func (*Client) Admin ¶
func (c *Client) Admin() *AdminClient
func (*Client) Ionian ¶
func (c *Client) Ionian() *IonianClient
type FileInfo ¶
type FileInfo struct { Tx Transaction `json:"tx"` Finalized bool `json:"finalized"` IsCached bool `json:"isCached"` UploadedSegNum uint64 `json:"uploadedSegNum"` }
type IonianClient ¶
type IonianClient struct {
// contains filtered or unexported fields
}
Ionian RPCs
func (*IonianClient) DownloadSegment ¶
func (*IonianClient) DownloadSegmentWithProof ¶
func (c *IonianClient) DownloadSegmentWithProof(root common.Hash, index uint64) (segment *SegmentWithProof, err error)
func (*IonianClient) GetFileInfo ¶
func (c *IonianClient) GetFileInfo(root common.Hash) (file *FileInfo, err error)
func (*IonianClient) GetFileInfoByTxSeq ¶
func (c *IonianClient) GetFileInfoByTxSeq(txSeq uint64) (file *FileInfo, err error)
func (*IonianClient) GetStatus ¶
func (c *IonianClient) GetStatus() (status Status, err error)
func (*IonianClient) UploadSegment ¶
func (c *IonianClient) UploadSegment(segment SegmentWithProof) (ret int, err error)
type KvClient ¶
type KvClient struct {
// contains filtered or unexported fields
}
func (*KvClient) GetHoldingStreamIds ¶
func (*KvClient) GetTransactionResult ¶
func (*KvClient) HasWritePermission ¶
func (*KvClient) IsSpecialKey ¶
func (*KvClient) IsWriterOfKey ¶
type SegmentWithProof ¶
type Transaction ¶
Click to show internal directories.
Click to hide internal directories.