Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SecondsToExpirationDate ¶
SecondsToExpirationDate returns the expiration date from now plus the given number of seconds.
func TTLToSeconds ¶
TTLToSeconds converts a TTL string to seconds. The TTL string is a number followed by a unit: - y: years - mo: months - d: days - any other unit supported by time.ParseDuration.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.