Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Azure/peerd
/ types & classes
Types & classes
50 in github.com/Azure/peerd
⨍
Functions
350
◇
Types & classes
50
↓ 5 callers
TypeAlias
ReverseFloat64Slice
ReverseFloat64Slice is a type that implements the sort.Interface interface so that we can sort a slice of float64 in reverse order
tests/random/math/reverse.go:9
↓ 1 callers
TypeAlias
operation
pkg/discovery/content/reader/reader.go:21
Struct
Arguments
cmd/proxy/cmd.go:19
Struct
Arguments
tests/cmd/cmd.go:13
Interface
Cache
Cache describes a cache of files.
pkg/cache/interface.go:6
Struct
ClientSet
ClientSet is an interface for k8s API server.
pkg/k8s/k8s.go:18
Struct
ContentNotFoundError
ContentNotFoundError indicates that the content for the given key was not found in the network.
pkg/discovery/routing/router.go:63
Struct
Context
Context is the request context that can be passed around to various components to provide request specific information.
pkg/context/context.go:57
Struct
Error
Error describes an error that occurred during a remote operation.
pkg/discovery/content/reader/interface.go:24
Interface
EventRecorder
EventRecorder can be used to record various event.
pkg/k8s/events/interface.go:6
Interface
File
File is an abstraction for a file that can be read from this store. It is similar to os.File.
pkg/files/store/interface.go:26
Struct
FilesHandler
FilesHandler describes a handler for files.
pkg/handlers/files/handler.go:17
Interface
FilesStore
FilesStore describes a store for files.
pkg/files/store/interface.go:13
Interface
LeaderElection
LeaderElection provides an interface to elect a leader in a kubernetes cluster.
pkg/k8s/election/election.go:18
Interface
Metrics
Metrics defines an interface to collect p2p metrics.
pkg/metrics/interface.go:15
Struct
MockHost
MockHost provides a mock implementation of host.Host for unit testing.
pkg/peernet/mocks/host.go:19
Struct
MockPeerstore
MockPeerstore provides a mock implementation of peerstore.Peerstore for unit testing.
pkg/peernet/mocks/peerstore.go:17
Struct
MockRouter
pkg/discovery/routing/mocks/router.go:15
Struct
MockStore
pkg/files/store/mockstore.go:12
Interface
Network
Network provides the transport and HTTP clients for communicating with peers.
pkg/peernet/network.go:28
Interface
Parser
Parser describes an interface for parsing information from a URL.
pkg/urlparser/parser.go:11
Struct
PeerInfo
PeerInfo describes a peer.
pkg/discovery/routing/interface.go:32
Struct
RandomCmd
tests/cmd/cmd.go:5
Interface
Reader
Reader provides a read-only interface to a remote file.
pkg/discovery/content/reader/interface.go:12
Interface
Router
Router provides a content routing interface to the network.
pkg/discovery/routing/interface.go:13
Struct
ScannerCmd
tests/cmd/cmd.go:11
Struct
Segment
Segment represents a single segment.
pkg/math/segments.go:15
Struct
Segments
Segments represents a range of segments.
pkg/math/segments.go:8
Struct
ServerCmd
cmd/proxy/cmd.go:5
Struct
SyncMap
The default eviction percentage. Used when the map reaches its capacity at insertion. SyncMap is a map that can be safely accessed concurrently.
pkg/cache/syncmap.go:12
Struct
ctxKey
pkg/metrics/interface.go:12
Struct
eventRecorder
pkg/k8s/events/events.go:81
Struct
eventsRecorderCtxKeyType
pkg/k8s/events/events.go:16
Struct
file
file describes a file that can be read from this content store. It implements the File interface. It is similar to os.File.
pkg/files/store/file.go:20
Struct
fileCache
fileCache implements FileCache.
pkg/cache/filecache.go:21
Struct
item
item is a cached item.
pkg/cache/item.go:19
Struct
leaderElection
leaderElection provides an implementation of LeaderElection.
pkg/k8s/election/election.go:27
Struct
mockReader
pkg/files/files_test.go:62
Struct
mockReader
pkg/discovery/content/reader/mocks/reader.go:12
Struct
network
pkg/peernet/network.go:42
Struct
parser
pkg/urlparser/parser.go:17
Struct
prefetchableSegment
prefetchableSegment describes a part of a file to prefetch.
pkg/files/store/store.go:57
Struct
promMetrics
promMetrics is a metrics collector that stores metrics in Prometheus.
pkg/metrics/prometheus.go:11
Struct
reader
reader is a Reader implementation.
pkg/discovery/content/reader/reader.go:31
Struct
router
pkg/discovery/routing/router.go:37
Struct
store
store describes a content store whose contents can come from disk or a remote source.
pkg/files/store/store.go:66
Struct
tc
pkg/cache/filecache_test.go:70
Struct
testCr
pkg/discovery/routing/router_test.go:213
Struct
testHost
pkg/discovery/routing/router_test.go:240
Struct
testRecorder
pkg/k8s/events/events_test.go:162