Documentation ¶ Index ¶ type JWT func (t *JWT) EncodeJWT(secret string, headers, payload map[string]string) (string, error) func (t *JWT) VerifyJWT(secret, jwt string, expire int64) error func (t *JWT) VerifyJWTAndGetPayload(secret, jwt string, expire int64) (map[string]string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type JWT ¶ type JWT struct { } func (*JWT) EncodeJWT ¶ func (t *JWT) EncodeJWT(secret string, headers, payload map[string]string) (string, error) func (*JWT) VerifyJWT ¶ func (t *JWT) VerifyJWT(secret, jwt string, expire int64) error func (*JWT) VerifyJWTAndGetPayload ¶ added in v0.0.4 func (t *JWT) VerifyJWTAndGetPayload(secret, jwt string, expire int64) (map[string]string, error) Source Files ¶ View all Source files jwt.go Click to show internal directories. Click to hide internal directories.