Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PieceStoreAPI ¶
type PieceStoreAPI interface { GetPiece(ctx context.Context, key string, offset, limit int64) ([]byte, error) PutPiece(key string, value []byte) error }
PieceStoreAPI provides an interface to enable mocking the StoreClient's API operation. This makes unit test to test your code easier.
type StoreClient ¶
type StoreClient struct {
// contains filtered or unexported fields
}
func NewStoreClient ¶
func NewStoreClient(pieceConfig *storage.PieceStoreConfig) (*StoreClient, error)
func (*StoreClient) GetSegment ¶
func (*StoreClient) PutSegment ¶
func (client *StoreClient) PutSegment(key string, value []byte) error
Click to show internal directories.
Click to hide internal directories.