Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyTime ¶
VerifyTime verifies the iat and exp times with regard to the current time
Types ¶
type DurationInSeconds ¶
DurationInSeconds is a type for handling time.Duration expressed in seconds
func NewDurationInSeconds ¶
func NewDurationInSeconds(seconds float64) DurationInSeconds
NewDurationInSeconds returns a DurationInSeconds from a number of seconds
func (DurationInSeconds) MarshalJSON ¶
func (d DurationInSeconds) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (DurationInSeconds) MarshalYAML ¶
func (d DurationInSeconds) MarshalYAML() (any, error)
MarshalYAML implements the yaml.Marshaler interface.
func (*DurationInSeconds) UnmarshalJSON ¶
func (d *DurationInSeconds) UnmarshalJSON(src []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
func (*DurationInSeconds) UnmarshalYAML ¶
func (d *DurationInSeconds) UnmarshalYAML(value *yaml.Node) error
UnmarshalYAML implements the yaml.Unmarshaler interface.
type Unixtime ¶
Unixtime is a type for handling unix timestamps
func (Unixtime) MarshalJSON ¶
MarshalJSON implements the json.Marshaler interface.
func (*Unixtime) UnmarshalJSON ¶
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.