Documentation ¶
Index ¶
- Constants
- Variables
- func ErasueDecode(shards [][]byte, dataShards int, parShards int) (data []byte, recoverShards [][]byte, err error)
- func ErasueEncode(data []byte, dataShards int, parShards int) (shards [][]byte, err error)
- func ErasueRecover(shards [][]byte, dataShards int, parShards int) (data [][]byte, err error)
- func NewEraBS(esclient Client, batch int) (*blostore, error)
- func NewErasureBlockstore(ctx context.Context, servAddrs []string, connNum int, ...) (*blostore, error)
- type Chunker
- type Client
- type ClientWithInfo
- type ErasureClient
- func (ec *ErasureClient) AllKeysChan(startKey string) (chan string, error)
- func (ec *ErasureClient) CheckSum(key string) (string, error)
- func (ec *ErasureClient) Close()
- func (ec *ErasureClient) Delete(key string) (err error)
- func (ec *ErasureClient) Get(key string) (value []byte, err error)
- func (ec *ErasureClient) Has(key string) (has bool, err error)
- func (ec *ErasureClient) Put(key string, value []byte) (err error)
- func (ec *ErasureClient) Size(key string) (n int, err error)
- func (ec *ErasureClient) TargetActive() bool
- type Head
- type Msg
- type PServ
- type RecoverClient
- func (ec *RecoverClient) Close()
- func (ec *RecoverClient) ExportAllKeys(startKey, pathToAllKeys string) error
- func (ec *RecoverClient) Recover(startKey string) (err error)
- func (ec *RecoverClient) RecoverCheck(pathToAllKeys, pathToUnrecoverKeys string) (err error)
- func (ec *RecoverClient) RecoverFromFile(startKey, pathToAllKeys string) (err error)
- func (ec *RecoverClient) RecoverKey(key string) (err error)
- type Reply
- type ReplyHead
- type TransClient
- func (tc *TransClient) AllKeysChan(startKey string) (chan string, error)
- func (tc *TransClient) CheckSum(key string) (string, error)
- func (tc *TransClient) Close()
- func (tc *TransClient) Delete(key string) error
- func (tc *TransClient) Get(key string) ([]byte, error)
- func (tc *TransClient) Has(key string) (bool, error)
- func (tc *TransClient) Put(key string, value []byte) error
- func (tc *TransClient) Size(key string) (int, error)
- func (tc *TransClient) TargetActive() bool
Constants ¶
View Source
const RecoverMode = "recover"
Variables ¶
Functions ¶
func ErasueDecode ¶
func ErasueEncode ¶
func ErasueRecover ¶ added in v0.0.3
Types ¶
type ClientWithInfo ¶ added in v0.0.3
type ErasureClient ¶
type ErasureClient struct {
// contains filtered or unexported fields
}
func NewErasureClient ¶
func NewErasureClient(chunkClients []Client, dataShards, parShards int, mode string) (*ErasureClient, error)
func (*ErasureClient) AllKeysChan ¶
func (ec *ErasureClient) AllKeysChan(startKey string) (chan string, error)
func (*ErasureClient) CheckSum ¶ added in v0.0.5
func (ec *ErasureClient) CheckSum(key string) (string, error)
func (*ErasureClient) Close ¶
func (ec *ErasureClient) Close()
func (*ErasureClient) Delete ¶
func (ec *ErasureClient) Delete(key string) (err error)
func (*ErasureClient) TargetActive ¶
func (ec *ErasureClient) TargetActive() bool
type Msg ¶
type RecoverClient ¶ added in v0.0.3
type RecoverClient struct {
// contains filtered or unexported fields
}
func NewRecoverClient ¶ added in v0.0.3
func NewRecoverClient(chunkClients []*ClientWithInfo, dataShards, parShards int) (*RecoverClient, error)
func (*RecoverClient) Close ¶ added in v0.0.3
func (ec *RecoverClient) Close()
func (*RecoverClient) ExportAllKeys ¶ added in v0.0.3
func (ec *RecoverClient) ExportAllKeys(startKey, pathToAllKeys string) error
func (*RecoverClient) Recover ¶ added in v0.0.3
func (ec *RecoverClient) Recover(startKey string) (err error)
func (*RecoverClient) RecoverCheck ¶ added in v0.0.3
func (ec *RecoverClient) RecoverCheck(pathToAllKeys, pathToUnrecoverKeys string) (err error)
func (*RecoverClient) RecoverFromFile ¶ added in v0.0.3
func (ec *RecoverClient) RecoverFromFile(startKey, pathToAllKeys string) (err error)
func (*RecoverClient) RecoverKey ¶ added in v0.0.3
func (ec *RecoverClient) RecoverKey(key string) (err error)
type TransClient ¶
type TransClient struct {
// contains filtered or unexported fields
}
func NewTransClient ¶
func NewTransClient(ctx context.Context, target string, connNum int) *TransClient
func (*TransClient) AllKeysChan ¶
func (tc *TransClient) AllKeysChan(startKey string) (chan string, error)
func (*TransClient) CheckSum ¶ added in v0.0.5
func (tc *TransClient) CheckSum(key string) (string, error)
func (*TransClient) Close ¶
func (tc *TransClient) Close()
func (*TransClient) Delete ¶
func (tc *TransClient) Delete(key string) error
func (*TransClient) TargetActive ¶
func (tc *TransClient) TargetActive() bool
Click to show internal directories.
Click to hide internal directories.