Documentation ¶
Overview ¶
Package netstore provides an abstraction layer over the File local storage layer that leverages connectivity with other peers in order to retrieve chunks from the network that cannot be found locally.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRecoveryAttempt = errors.New("failed to retrieve chunk, recovery initiated")
)
Functions ¶
This section is empty.
Types ¶
type Store ¶
func (*Store) Get ¶
func (s *Store) Get(ctx context.Context, mode storage.ModeGet, addr boson.Address, index int64) (ch boson.Chunk, err error)
Get retrieves a given chunk address. It will request a chunk from the network whenever it cannot be found locally.
func (*Store) SetChunkInfo ¶
Click to show internal directories.
Click to hide internal directories.