Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcChunkGetter ¶
type GrpcChunkGetter struct {
// contains filtered or unexported fields
}
func (GrpcChunkGetter) GetChunk ¶
func (g GrpcChunkGetter) GetChunk(token types.DecryptTaskToken, path string, index int) (chunk []byte, errStr string)
func (GrpcChunkGetter) GetTotalBytes ¶
func (g GrpcChunkGetter) GetTotalBytes(path string) (totalBytes int, errStr string)
type GrpcRateLimiter ¶
type GrpcRateLimiter struct {
// contains filtered or unexported fields
}
type KuboChunkGetter ¶
type KuboChunkGetter struct {
// contains filtered or unexported fields
}
func NewKuboChunkGetter ¶
func NewKuboChunkGetter(server string) *KuboChunkGetter
func (*KuboChunkGetter) GetChunk ¶
func (kcg *KuboChunkGetter) GetChunk(token types.DecryptTaskToken, path string, index int) (chunk []byte, errStr string)
func (*KuboChunkGetter) GetTotalBytes ¶
func (kcg *KuboChunkGetter) GetTotalBytes(path string) (totalBytes int, errStr string)
https://docs.ipfs.tech/reference/kubo/rpc/#api-v0-files-stat
type RpcxChunkGetter ¶
type RpcxChunkGetter struct {
// contains filtered or unexported fields
}
func (RpcxChunkGetter) GetChunk ¶
func (g RpcxChunkGetter) GetChunk(token types.DecryptTaskToken, path string, index int) (chunk []byte, errStr string)
func (RpcxChunkGetter) GetTotalBytes ¶
func (g RpcxChunkGetter) GetTotalBytes(path string) (totalBytes int, errStr string)
Click to show internal directories.
Click to hide internal directories.