Documentation ¶ Index ¶ func GetDB() *gorm.DB func Login(uname, password string, w http.ResponseWriter) map[string]interface{} func Refresh(w http.ResponseWriter, r *http.Request) type Auth func (account *Auth) Create() map[string]interface{} func (account *Auth) Validate() (map[string]interface{}, bool) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func GetDB ¶ func GetDB() *gorm.DB func Login ¶ func Login(uname, password string, w http.ResponseWriter) map[string]interface{} func Refresh ¶ func Refresh(w http.ResponseWriter, r *http.Request) Types ¶ type Auth ¶ type Auth struct { gorm.Model UName string `json:"uname"` Status string `json:"status"` Password string `json:"password"` Role string `json:"role"` Response string `json:"response"` } func (*Auth) Create ¶ func (account *Auth) Create() map[string]interface{} func (*Auth) Validate ¶ func (account *Auth) Validate() (map[string]interface{}, bool) Validate incoming user details... Source Files ¶ View all Source files authModel.goinit.go Click to show internal directories. Click to hide internal directories.