Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BasePath is the path to the project BasePath = os.Getenv("GOPATH") + "/src/github.com/kiketordera/basic-login" )
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB is the DataBase which contains the information.
func InitDatabase ¶
func InitDatabase() DB
InitDatabase returns the DataBase of the project or creates a new DataBase if does not exists
type TokenClaims ¶
type TokenClaims struct { Username string `json:"usr,omitempty"` Role string `json:"rol,omitempty"` jwt.StandardClaims }
TokenClaims is the token that we store in the cookies
Click to show internal directories.
Click to hide internal directories.