Documentation ¶ Index ¶ func Gen(user model.User) (tokenString string, err error) func Parse(tokenString string) (ID int, ProfileID int, err error) type Claims Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Gen ¶ func Gen(user model.User) (tokenString string, err error) Gen Service func Parse ¶ func Parse(tokenString string) (ID int, ProfileID int, err error) Parse Service Types ¶ type Claims ¶ type Claims struct { ID int `json:"id"` Type int `json:"type"` ProfileID int `json:"profileID"` Name string `json:"profile.name"` Desc string `json:"profile.desc"` jwt.StandardClaims } Claims struct Source Files ¶ View all Source files base.go gen.go parse.go Click to show internal directories. Click to hide internal directories.