MCPcopy
hub / github.com/GopeedLab/gopeed / ProtocolStateStore

Interface ProtocolStateStore

internal/fetcher/fetcher.go:139–143  ·  view source on GitHub ↗

ProtocolStateStore persists shared protocol state for a fetcher manager. Downloader provides the concrete storage backend, while the protocol decides when state should be loaded or flushed.

Source from the content-addressed store, hash-verified

137// Downloader provides the concrete storage backend, while the protocol decides
138// when state should be loaded or flushed.
139type ProtocolStateStore interface {
140 Load(v any) (bool, error)
141 Save(v any) error
142 Delete() error
143}
144
145type DefaultFetcher struct {
146 Ctl *controller.Controller

Callers 10

SetupMethod · 0.65
ClearMethod · 0.65
StartMethod · 0.65
ProgressMethod · 0.65
WaitMethod · 0.65
doUploadMethod · 0.65
addTorrentMethod · 0.65
LoadMethod · 0.65
SaveMethod · 0.65
SaveMethod · 0.65

Implementers 1

protocolStateStorepkg/download/downloader.go

Calls

no outgoing calls

Tested by

no test coverage detected