Versions in this module Expand all Collapse all v0 v0.7.0 Jun 19, 2020 Changes in this version + var Gateway func(isAdmin bool) Authentication + type Authentication interface + Generate func(uid string, duration ...time.Duration) (string, error) + Parse func(token string) (string, error) + Remove func(token string) error + type Jwt struct + func NewJwt(isAdmin bool) Jwt + func (c Jwt) Generate(uid string, duration ...time.Duration) (string, error) + func (c Jwt) Parse(tokenString string) (string, error) + func (c Jwt) Remove(_ string) error + type Session struct + func NewSession(isAdmin bool) Session + func (c Session) Generate(uid string, durations ...time.Duration) (string, error) + func (c Session) Parse(tokenString string) (string, error) + func (c Session) Remove(tokenString string) error