Modules§
- address
- config
- db
- Note on database migrations
- device
- events
- Events for
upload-pack
processes. - notifications
- policy
- refs
- routing
- seed
- sync
- timestamp
Structs§
- Address
- Peer public protocol address.
- Alias
- Node alias, i.e. a short and memorable name for it.
- Config
- Service configuration.
- Connect
Options - Options passed to the “connect” node command.
- Database
- A file-backed database storing information about the network.
- Events
- Events feed.
- Features
- Advertized node features. Signals what services the node supports.
- Fetch
Results - Holds multiple fetch results.
- Known
Address - A known address.
- Line
Iter - Iterator of results
T
when passing aCommand
toNode::call
. - Node
- Node controller.
- Peer
Addr - Penalty
- Node connection penalty. Nodes with a high penalty are deprioritized as peers.
- Seed
- A seed for some repository, with metadata about its status.
- Seeds
- Represents a set of seeds with associated metadata. Uses an RNG underneath, so every iteration returns a different ordering.
- Session
- An established network connection with a peer.
- Success
- A success response.
- Synced
At - Holds an oid and timestamp.
- Timestamp
- Milliseconds since epoch.
- User
Agent - Node user agent.
Enums§
- Alias
Error - Command
- Command name.
- Command
Result - Result of a command, on the node control socket.
- Connect
Result - Error
- Error returned by
Handle
functions. - Event
- A service event.
- Fetch
Result - Host
Name - A host name covers multiple types which are not necessarily resolved by an
OS and may require additional name resolvers (like via SOCKS5 etc). The type
doesn’t provide an information about the resolver; for that use
super::ProxiedHost
. - Link
- Connection link direction.
- Ping
State - Severity
- Severity of a peer misbehavior or a connection problem.
- State
- Sync
Status - Repository sync status for our own refs.
Constants§
- DEFAULT_
PORT - Default radicle protocol port.
- DEFAULT_
SOCKET_ NAME - Default name for control socket file.
- DEFAULT_
SUBSCRIBE_ TIMEOUT - Default timeout when waiting for an event to be received on the
Handle::subscribe
channel. - DEFAULT_
TIMEOUT - Default timeout when waiting for the node to respond with data.
- MAX_
ALIAS_ LENGTH - Maximum length in bytes of a node alias.
- NODE_
ANNOUNCEMENT_ FILE - Filename of last node announcement, when running in debug mode.
- NODE_
DB_ FILE - Filename of node database under the node directory.
- NOTIFICATIONS_
DB_ FILE - Filename of notifications database under the node directory.
- PENALTY_
BAN_ THRESHOLD - Penalty threshold at which point we ban this node.
- PENALTY_
CONNECT_ THRESHOLD - Penalty threshold at which point we avoid connecting to this node.
- POLICIES_
DB_ FILE - Filename of policies database under the node directory.
- PROTOCOL_
VERSION - Peer-to-peer protocol version.
Traits§
- Alias
Store - A trait for different sources which can potentially return an alias.
- Handle
- A handle to send commands to the node or request information.
Type Aliases§
- NodeId
- Public node & device identifier.