Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// UserService is used to publically acces user service instance
UserService userServiceInterface = &userService{}
)
Functions ¶
This section is empty.
Types ¶
type JWTService ¶
type JWTService interface { GenerateToken(int64, bool) string ValidateToken(string) (*jwt.Token, error) }
JWTService will generate and validate a token to authenticate a user before processing request
func JWTAuthService ¶
func JWTAuthService() JWTService
JWTAuthService is used to generate a public constructor for creating an instance of the service
Click to show internal directories.
Click to hide internal directories.