Documentation ¶
Index ¶
- type Base
- type ConfigJWT
- type JWT
- func (s *JWT) IsExpired(err error) bool
- func (s *JWT) IsNeedUpdate(err error) bool
- func (v JWT) MarshalEasyJSON(w *jwriter.Writer)
- func (v JWT) MarshalJSON() ([]byte, error)
- func (s *JWT) Sign(d interface{}, ttl time.Duration) ([]byte, error)
- func (v *JWT) UnmarshalEasyJSON(l *jlexer.Lexer)
- func (v *JWT) UnmarshalJSON(data []byte) error
- func (s *JWT) Verify(token []byte) (interface{}, string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
func (*JWT) IsNeedUpdate ¶
func (JWT) MarshalEasyJSON ¶ added in v1.8.0
MarshalEasyJSON supports easyjson.Marshaler interface
func (JWT) MarshalJSON ¶ added in v1.8.0
MarshalJSON supports json.Marshaler interface
func (*JWT) UnmarshalEasyJSON ¶ added in v1.8.0
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*JWT) UnmarshalJSON ¶ added in v1.8.0
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.