Documentation ¶
Index ¶
Constants ¶
View Source
const ( TrackerListKey = "TrackerListKey" TrackerListVersion = 0 TimestampKey = "IDTrackingTimestamp" // DefaultExtraChecks is the default value for ExtraChecks // on receptionID.Identity. DefaultExtraChecks = 5 // NetworkRetention is how long messages are // retained on the network NetworkRetention = 500 * time.Hour // GenerationDelta is how far into the past // to go in order to ensure all relevant // ephemeral identities are generated GenerationDelta = time.Duration(ephemeral.Period) + (5 * time.Second) )
Variables ¶
View Source
var Forever = time.Time{}
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker interface { StartProcesses() stoppable.Stoppable AddIdentityInternal(id *id.ID, validUntil time.Time, persistent bool) AddIdentityWithHistoryInternal(id *id.ID, validUntil, beginning time.Time, persistent bool) RemoveIdentityInternal(id *id.ID) ForEach(n int, rng io.Reader, addressSize uint8, operator func([]receptionID.IdentityUse) error) error GetIdentity(get *id.ID) (TrackedID, error) }
Click to show internal directories.
Click to hide internal directories.