Documentation ¶
Index ¶
- type PieceStore
- func (p *PieceStore) Delete(ctx context.Context, key string) error
- func (p *PieceStore) Get(ctx context.Context, key string, offset, limit int64) (io.ReadCloser, error)
- func (p *PieceStore) GetPieceInfo(ctx context.Context, key string) (storage.Object, error)
- func (p *PieceStore) Put(ctx context.Context, key string, reader io.Reader) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PieceStore ¶
type PieceStore struct {
// contains filtered or unexported fields
}
func NewPieceStore ¶
func NewPieceStore(pieceConfig *storage.PieceStoreConfig) (*PieceStore, error)
NewPieceStore returns an instance of PieceStore
func (*PieceStore) Delete ¶
func (p *PieceStore) Delete(ctx context.Context, key string) error
Delete one piece in PieceStore
func (*PieceStore) Get ¶
func (p *PieceStore) Get(ctx context.Context, key string, offset, limit int64) (io.ReadCloser, error)
Get one piece from PieceStore
func (*PieceStore) GetPieceInfo ¶
GetPieceInfo returns piece info in PieceStore
Click to show internal directories.
Click to hide internal directories.