Documentation
¶
Index ¶
Constants ¶
View Source
const ( SamplingWindow = 7 * 24 * time.Hour // Ref: CIP-036 RequestWindow = SamplingWindow StorageWindow = RequestWindow + time.Hour )
Variables ¶
View Source
var (
ErrOutsideSamplingWindow = errors.New("timestamp outside sampling window")
)
Functions ¶
func IsWithinWindow ¶
IsWithinWindow checks whether the given timestamp is within the given AvailabilityWindow. If the window is disabled (0), it returns true for every timestamp.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.