Versions in this module Expand all Collapse all v1 v1.0.0 Oct 26, 2017 Changes in this version + type Algorithm struct + func HmacSha256(key string) Algorithm + func HmacSha384(key string) Algorithm + func HmacSha512(key string) Algorithm + func (a *Algorithm) Decode(encoded string) (*Claims, error) + func (a *Algorithm) DecodeAndValidate(encoded string) (claims *Claims, err error) + func (a *Algorithm) Encode(payload *Claims) (string, error) + func (a *Algorithm) NewHeader() *Header + func (a *Algorithm) Sign(unsignedToken string) (string, error) + func (a *Algorithm) Validate(encoded string) error + type Claims struct + func NewClaim() *Claims + func (c *Claims) GetTime(key string) (time.Time, error) + func (c *Claims) HasClaim(key string) bool + func (c *Claims) Set(key string, value interface{}) + func (c *Claims) SetTime(key string, value time.Time) + func (c Claims) Get(key string) (interface{}, error) + type Header struct + Alg string + Cty string + Typ string Incompatible versions in this module v2.0.0+incompatible Mar 7, 2018