Documentation ¶ Index ¶ func Encode(claims, alg, key string) (string, error) type JsonField func (j JsonField) ToJson() string func (j JsonField) ToJsonIndent() string type Token func Decode(rawToken, alg, key string) (Token, error) func (t Token) String() string func (t Token) StringIndent() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Encode ¶ func Encode(claims, alg, key string) (string, error) Types ¶ type JsonField ¶ type JsonField map[string]interface{} func (JsonField) ToJson ¶ func (j JsonField) ToJson() string func (JsonField) ToJsonIndent ¶ func (j JsonField) ToJsonIndent() string type Token ¶ type Token struct { Valid bool Header JsonField Claims JsonField } func Decode ¶ func Decode(rawToken, alg, key string) (Token, error) func (Token) String ¶ func (t Token) String() string func (Token) StringIndent ¶ func (t Token) StringIndent() string Source Files ¶ View all Source files decode.go encode.go token.go Click to show internal directories. Click to hide internal directories.