btc retriever and filterer

This commit is contained in:
Ian Norden
2020-02-20 16:14:17 -06:00
parent f33cc3f34b
commit aa2f8bd0a5
11 changed files with 347 additions and 77 deletions
+4 -12
View File
@@ -19,12 +19,8 @@ package shared
// These types serve as very loose wrappers around a generic underlying interface{}
type RawChainData interface{}
// The concrete type underneath StreamedIPLDs can be a pointer only if the Value() method returns a copy of the values
// stored at that memory location and not a copy of the pointer itself.
// We want to avoid sending a pointer to publishAndIndex and screenAndServe channels; sharing memory across these processes
type StreamedIPLDs interface {
Value() StreamedIPLDs
}
// The concrete type underneath StreamedIPLDs should not be a pointer
type StreamedIPLDs interface{}
type CIDsForIndexing interface{}
@@ -32,12 +28,8 @@ type CIDsForFetching interface{}
type FetchedIPLDs interface{}
// The concrete type underneath StreamedIPLDs can be a pointer only if the Value() method returns a copy of the values
// stored at that memory location and not a copy of the pointer itself.
// We want to avoid sending a pointer to subscription channels; sharing memory across all subscriptions
type ServerResponse interface {
Value() ServerResponse
}
// The concrete type underneath StreamedIPLDs should not be a pointer
type ServerResponse interface{}
type Gap struct {
Start uint64