Versions in this module Expand all Collapse all v1 v1.0.2 May 13, 2022 Changes in this version + func ParseWithClaims(tokenStr string, claims *MapClaims, fn func(*MapClaims) ([]byte, error)) error + func ParseWithStandardClaims(tokenStr string, claims *StandardClaims, key []byte) error + type HashBorrower struct + func (h *HashBorrower) Borrow() hash.Hash + func (h *HashBorrower) ReturnAll() + type MapClaims struct + AccessKey string + func NewMapClaims() *MapClaims + func (c *MapClaims) GetAccessKey() string + func (c *MapClaims) Lookup(key string) (value string, ok bool) + func (c *MapClaims) Map() map[string]interface{} + func (c *MapClaims) MarshalJSON() ([]byte, error) + func (c *MapClaims) SetAccessKey(accessKey string) + func (c *MapClaims) SetExpiry(t time.Time) + func (c *MapClaims) Valid() error + type SigningMethodHMAC struct + Hash crypto.Hash + HasherPool sync.Pool + Name string + var SigningMethodHS256 *SigningMethodHMAC + var SigningMethodHS384 *SigningMethodHMAC + var SigningMethodHS512 *SigningMethodHMAC + func ParseUnverifiedMapClaims(token []byte, claims *MapClaims, buf []byte) (*SigningMethodHMAC, error) + func ParseUnverifiedStandardClaims(token []byte, claims *StandardClaims, buf []byte) (*SigningMethodHMAC, error) + func (s *SigningMethodHMAC) HashBorrower() HashBorrower + type StandardClaims struct + AccessKey string + func NewStandardClaims() *StandardClaims + func (c *StandardClaims) SetAccessKey(accessKey string) + func (c *StandardClaims) SetAudience(aud string) + func (c *StandardClaims) SetExpiry(t time.Time) + func (c *StandardClaims) SetIssuer(issuer string) + func (c *StandardClaims) UnmarshalJSON(b []byte) (err error) + func (c *StandardClaims) Valid() error