Documentation ¶
Overview ¶
Package netstore provides an abstraction layer over the Aurora 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 ¶ added in v1.3.0
func (*Store) Get ¶ added in v1.3.0
func (s *Store) Get(ctx context.Context, mode storage.ModeGet, addr boson.Address) (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 ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.