Documentation ¶
Index ¶
- Constants
- type RevInfo
- func (r *RevInfo) Active() error
- func (r *RevInfo) Equal(other *RevInfo) bool
- func (r *RevInfo) Expiration() time.Time
- func (r *RevInfo) IA() addr.IA
- func (r *RevInfo) RelativeTTL(reference time.Time) time.Duration
- func (r *RevInfo) SameIntf(other *RevInfo) bool
- func (r *RevInfo) String() string
- func (r *RevInfo) TTL() time.Duration
- func (r *RevInfo) Timestamp() time.Time
- type RevTimeError
Constants ¶
View Source
const MinRevTTL = 10 * time.Second // MinRevTTL is the minimum lifetime of a revocation
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RevInfo ¶
type RevInfo struct { IfID common.IFIDType RawIsdas addr.IA // LinkType of revocation LinkType proto.LinkType // RawTimestamp the issuing timestamp in seconds. RawTimestamp uint32 // RawTTL validity period of the revocation in seconds RawTTL uint32 }
func (*RevInfo) Expiration ¶
func (*RevInfo) RelativeTTL ¶
RelativeTTL returns the duration r is still valid for, relative to reference. If the revocation is already expired, the returned value is 0.
type RevTimeError ¶
type RevTimeError string
func NewRevTimeError ¶
func NewRevTimeError(r *RevInfo) RevTimeError
func (RevTimeError) Error ¶
func (ee RevTimeError) Error() string
func (RevTimeError) Timeout ¶
func (ee RevTimeError) Timeout() bool
Click to show internal directories.
Click to hide internal directories.