class

Tinrelay::Store

Inherits Reference < Object

Constants

AUTH_SKEW_SECONDS = 5 * 60
MAX_CIPHERTEXT_BYTES = 17 * 1024
MAX_HAILS_PER_DAY = 12
MAX_PENDING_PER_SHIP = 100
MAX_PENDING_SECONDS = FALLBACK_LIFETIME_SECONDS
MAX_TRANSMISSIONS_PER_HOUR = 60
UUID = /\A [0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}- [89ab][0-9a-f]{3}-[0-9a-f]{12} \z/x

Constructors

new(database : Tinrelay::Database)
Source

Instance methods

accept(envelope : SignedRelayEnvelope, now : Int64 = Time.utc.to_unix) : Nil
Source
acknowledge(request : TransmissionAck, now : Int64 = Time.utc.to_unix) : Nil
Source
acknowledge_hail(request : HailAck, now : Int64 = Time.utc.to_unix) : Nil
Source
acknowledge_retune(request : RetuneAck, now : Int64 = Time.utc.to_unix) : Nil
Source
allow_relationship(request : RelationshipAllow, now : Int64 = Time.utc.to_unix) : Nil
Source
claim(claim : ShipClaim, now : Int64 = Time.utc.to_unix) : Nil
Source
cleanup(now : Int64 = Time.utc.to_unix)
Source
close_relationship(request : RelationshipClose, now : Int64 = Time.utc.to_unix) : Nil
Source
database
Source
deliverable?(prepared : PreparedRelayEnvelope) : Bool
Source
inspect_ship(request : ShipInspection, now : Int64 = Time.utc.to_unix) : String
Source
persist(prepared : PreparedRelayEnvelope) : Bool
Source
persist_hail(hail : Hail) : Bool
Source
prepare(envelope : SignedRelayEnvelope, now : Int64 = Time.utc.to_unix) : PreparedRelayEnvelope | Nil
Source
prepare_hail(hail : Hail, now : Int64 = Time.utc.to_unix) : Hail
Source
rotate_owner(rotation : OwnerRotation, now : Int64 = Time.utc.to_unix) : Nil
Source
ship_change(change : ShipChange, now : Int64 = Time.utc.to_unix) : Nil
Source
verify_ack(request : TransmissionAck, now : Int64 = Time.utc.to_unix) : Nil
Source
wait_once(request : RadioWaitRequest, now : Int64 = Time.utc.to_unix) : RadioWaitResponse
Source