Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTService ¶
type JWTService interface { GenerateToken(name string, user bool) string ValidateToken(token string) (*jwt.Token, error) }
func NewJWTService ¶
func NewJWTService() JWTService
type LoginService ¶
type LoginService interface { Login(username string, password string) bool Register(newuser user.User) error GetAllUsers() []user.User }
func NewLoginService ¶
func NewLoginService(movieModel models.MovieModel) LoginService
Click to show internal directories.
Click to hide internal directories.