Versions in this module Expand all Collapse all v0 v0.1.0 Apr 13, 2021 Changes in this version + var Model modelInterface = &Server + type Auth struct + Admin int64 + AuthUUID string + Expires int64 + ID uint64 + UserID uint64 + type Server struct + DB *gorm.DB + func (s *Server) AutoMigrate(db *gorm.DB) + func (s *Server) CreateAuth(userId uint64) (*Auth, error) + func (s *Server) CreateUser(user *User) (*User, error) + func (s *Server) DeleteAuth(authD *auth.AuthDetails) error + func (s *Server) FetchAuth(authD *auth.AuthDetails) (*Auth, error) + func (s *Server) GetUserByEmail(email string) (*User, error) + func (s *Server) Initialize(db *gorm.DB) + func (s *Server) IsAdmin(authD *auth.AuthDetails) bool + func (s *Server) ValidateEmail(email string) error + type User struct + Admin int64 + Email string + ID uint64 + Password string