Documentation ¶
Index ¶
- Variables
- func Compare(hash string, password string) bool
- func CreateDB() *gorm.DB
- func CreateNewJWT(UserID uint) (string, error)
- func GetTokenSecret() string
- func Hash(password string) (string, error)
- func ParseToken(t string) (map[string]interface{}, error)
- type AppConfig
- type Seeder
- type TokenClaims
- type Yaml
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = NewConf()
View Source
var DB = CreateDB()
Functions ¶
func CreateNewJWT ¶
func GetTokenSecret ¶
func GetTokenSecret() string
func ParseToken ¶
Types ¶
type Seeder ¶
type Seeder struct{}
func (*Seeder) CreateRoles ¶
func (s *Seeder) CreateRoles(y *yamlScheme)
func (*Seeder) CreateUser ¶
func (s *Seeder) CreateUser(y *yamlScheme)
type TokenClaims ¶
type TokenClaims struct {
jwt.RegisteredClaims
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.