types

package
v2.0.0-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NumericDate

type NumericDate struct {
	time.Time
}

NumericDate represents the date format used in the 'nbf' claim

func (*NumericDate) Accept

func (n *NumericDate) Accept(v interface{}) error

func (*NumericDate) Get

func (n *NumericDate) Get() time.Time

func (*NumericDate) MarshalJSON

func (n *NumericDate) MarshalJSON() ([]byte, error)

MarshalJSON translates from internal representation to JSON NumericDate See https://tools.ietf.org/html/rfc7519#page-6

func (*NumericDate) UnmarshalJSON

func (n *NumericDate) UnmarshalJSON(data []byte) error

type StringList

type StringList []string

func (*StringList) Accept

func (l *StringList) Accept(v interface{}) error

func (StringList) Get

func (l StringList) Get() []string

func (*StringList) UnmarshalJSON

func (l *StringList) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL