Documentation ¶
Index ¶
- Variables
- type Auth
- type Server
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Model modelInterface = &Server{}
)
Functions ¶
This section is empty.
Types ¶
type Server ¶
func (*Server) AutoMigrate ¶
func (*Server) DeleteAuth ¶
func (s *Server) DeleteAuth(authD *auth.AuthDetails) error
func (*Server) Initialize ¶
func (*Server) ValidateEmail ¶
Click to show internal directories.
Click to hide internal directories.