Documentation ¶
Index ¶
- func ConnectDB() (*sql.DB, error)
- func CreateLoggers(request *http.Request) *logrus.Entry
- func CreateValidator() *validator.Validate
- func GenerateToken(claims jwt.MapClaims) *jwt.Token
- func InitConfig()
- func SetupMailjetClient() *mailjet.Client
- func VerifyToken(tokenString string, keyFunc jwt.Keyfunc) (*jwt.Token, error)
- type JwtParameters
- type LoggerFileHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateValidator ¶
func CreateValidator() *validator.Validate
func GenerateToken ¶
func GenerateToken(claims jwt.MapClaims) *jwt.Token
func InitConfig ¶
func InitConfig()
func SetupMailjetClient ¶
func SetupMailjetClient() *mailjet.Client
func VerifyToken ¶
Types ¶
type JwtParameters ¶
type LoggerFileHook ¶
type LoggerFileHook struct {
// contains filtered or unexported fields
}
func NewLoggerFileHook ¶
func (*LoggerFileHook) Levels ¶
func (hook *LoggerFileHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.