Documentation ¶ Index ¶ type Claim type JWTer func NewJWTer(issuer string, rawPrivateKey, rawPublicKey []byte) (*JWTer, error) func (j *JWTer) GenerateToken(subject string, duration time.Duration, claims []Claim) (string, []byte, error) func (j *JWTer) ParseRequest(r *http.Request) (jwt.Token, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Claim ¶ type Claim struct { Key string Value string } type JWTer ¶ type JWTer struct { Issuer string PrivateKey jwk.Key PublicKey jwk.Key } func NewJWTer ¶ func NewJWTer(issuer string, rawPrivateKey, rawPublicKey []byte) (*JWTer, error) func (*JWTer) GenerateToken ¶ func (j *JWTer) GenerateToken(subject string, duration time.Duration, claims []Claim) (string, []byte, error) func (*JWTer) ParseRequest ¶ func (j *JWTer) ParseRequest(r *http.Request) (jwt.Token, error) Source Files ¶ View all Source files jwter.go Click to show internal directories. Click to hide internal directories.