Documentation ¶
Index ¶
- Variables
- func HandleDBErrors(c *gin.Context, result *gorm.DB, notFoundString string)
- func HandleUserNotAllowed(c *gin.Context, user User, resourceUserID uint)
- func InitDatabase(user string, password string, db_addr string, db_name string) (err error)
- type CaesarEntry
- type DHEntry
- type Model
- type RSAEncryption
- type RSAEntry
- type User
- type VigenereEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalDB *gorm.DB
Functions ¶
func HandleUserNotAllowed ¶
Types ¶
type CaesarEntry ¶
type RSAEncryption ¶
type User ¶
type User struct { gorm.Model Username string `json:"username" gorm:"unique"` PasswordHash string `json:"phash"` }
func (*User) CheckPassword ¶
func (*User) CreateUserRecord ¶
func (*User) HashPassword ¶
Click to show internal directories.
Click to hide internal directories.