Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrExpired = errors.New("canary has expired")
Functions ¶
This section is empty.
Types ¶
type Canary ¶
type Canary []byte
func (Canary) IsValidDate ¶
IsValidDate validates canary's issue date. Unlike Validate method, IsValidDate checks only existence of date and its validity against provided time. Phrases defined in OMG specification are not checked. Returns nil if canary is valid.
Click to show internal directories.
Click to hide internal directories.