Documentation
¶
Index ¶
- type AdminClient
- type Client
- type FileInfo
- type KeyValue
- type KvClient
- func (c *KvClient) GetFirst(ctx context.Context, streamId common.Hash, startIndex, length uint64, ...) (val *KeyValue, err error)
- func (c *KvClient) GetHoldingStreamIds(ctx context.Context) (streamIds []common.Hash, err error)
- func (c *KvClient) GetLast(ctx context.Context, streamId common.Hash, startIndex, length uint64, ...) (val *KeyValue, err error)
- func (c *KvClient) GetNext(ctx context.Context, streamId common.Hash, key []byte, ...) (val *KeyValue, err error)
- func (c *KvClient) GetPrev(ctx context.Context, streamId common.Hash, key []byte, ...) (val *KeyValue, err error)
- func (c *KvClient) GetTransactionResult(ctx context.Context, txSeq uint64) (result string, err error)
- func (c *KvClient) GetValue(ctx context.Context, streamId common.Hash, key []byte, ...) (val *Value, err error)
- func (c *KvClient) HasWritePermission(ctx context.Context, account common.Address, streamId common.Hash, key []byte, ...) (hasPermission bool, err error)
- func (c *KvClient) IsAdmin(ctx context.Context, account common.Address, streamId common.Hash, ...) (isAdmin bool, err error)
- func (c *KvClient) IsSpecialKey(ctx context.Context, streamId common.Hash, key []byte, version ...uint64) (isSpecialKey bool, err error)
- func (c *KvClient) IsWriterOfKey(ctx context.Context, account common.Address, streamId common.Hash, key []byte, ...) (isWriter bool, err error)
- func (c *KvClient) IsWriterOfStream(ctx context.Context, account common.Address, streamId common.Hash, ...) (isWriter bool, err error)
- type SegmentWithProof
- type ShardConfig
- type Status
- type Transaction
- type Value
- type ZeroGStorageClient
- func (c *ZeroGStorageClient) DownloadSegment(ctx context.Context, root common.Hash, startIndex, endIndex uint64) (data []byte, err error)
- func (c *ZeroGStorageClient) DownloadSegmentWithProof(ctx context.Context, root common.Hash, index uint64) (segment *SegmentWithProof, err error)
- func (c *ZeroGStorageClient) GetFileInfo(ctx context.Context, root common.Hash) (file *FileInfo, err error)
- func (c *ZeroGStorageClient) GetFileInfoByTxSeq(ctx context.Context, txSeq uint64) (file *FileInfo, err error)
- func (c *ZeroGStorageClient) GetShardConfig(ctx context.Context) (shardConfig ShardConfig, err error)
- func (c *ZeroGStorageClient) GetStatus(ctx context.Context) (status Status, err error)
- func (c *ZeroGStorageClient) UploadSegment(ctx context.Context, segment SegmentWithProof) (ret int, err error)
- func (c *ZeroGStorageClient) UploadSegments(ctx context.Context, segments []SegmentWithProof) (ret int, err error)
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 (*AdminClient) Shutdown ¶
func (c *AdminClient) Shutdown(ctx context.Context) (ret int, err error)
func (*AdminClient) StartSyncFile ¶
type Client ¶
type Client struct {
*providers.MiddlewarableProvider
// contains filtered or unexported fields
}
func (*Client) Admin ¶
func (c *Client) Admin() *AdminClient
func (*Client) ZeroGStorage ¶
func (c *Client) ZeroGStorage() *ZeroGStorageClient
type FileInfo ¶
type FileInfo struct {
Tx Transaction `json:"tx"`
Finalized bool `json:"finalized"`
IsCached bool `json:"isCached"`
UploadedSegNum uint64 `json:"uploadedSegNum"`
}
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 ShardConfig ¶ added in v0.2.0
func (*ShardConfig) HasSegment ¶ added in v0.3.0
func (config *ShardConfig) HasSegment(segmentIndex uint64) bool
func (*ShardConfig) IsValid ¶ added in v0.3.0
func (config *ShardConfig) IsValid() bool
type Transaction ¶
type ZeroGStorageClient ¶
type ZeroGStorageClient struct {
// contains filtered or unexported fields
}
ZeroGStorage RPCs
func (*ZeroGStorageClient) DownloadSegment ¶
func (*ZeroGStorageClient) DownloadSegmentWithProof ¶
func (c *ZeroGStorageClient) DownloadSegmentWithProof(ctx context.Context, root common.Hash, index uint64) (segment *SegmentWithProof, err error)
func (*ZeroGStorageClient) GetFileInfo ¶
func (*ZeroGStorageClient) GetFileInfoByTxSeq ¶
func (*ZeroGStorageClient) GetShardConfig ¶ added in v0.2.0
func (c *ZeroGStorageClient) GetShardConfig(ctx context.Context) (shardConfig ShardConfig, err error)
func (*ZeroGStorageClient) GetStatus ¶
func (c *ZeroGStorageClient) GetStatus(ctx context.Context) (status Status, err error)
func (*ZeroGStorageClient) UploadSegment ¶
func (c *ZeroGStorageClient) UploadSegment(ctx context.Context, segment SegmentWithProof) (ret int, err error)
func (*ZeroGStorageClient) UploadSegments ¶
func (c *ZeroGStorageClient) UploadSegments(ctx context.Context, segments []SegmentWithProof) (ret int, err error)
Click to show internal directories.
Click to hide internal directories.