Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Config = struct { AppName string `default:"app name"` Database struct { Host string `default:"localhost"` User string `default:"root"` Password string `required:"true" env:"password"` Port string `default:"27017"` } RabbitMq struct { Host string `default:"localhost"` User string `default:"user"` Password string `required:"true" env:"secret"` Port string `default:"5672"` } Contacts []struct { Name string Email string `required:"true"` } }{}
Functions ¶
func CreateToken ¶
func CreateToken(email string) (*models.TokenResponse, error)
Types ¶
type JsonWebToken ¶
func CreateRefreshToken ¶
func CreateRefreshToken(username string) (*JsonWebToken, error)
encapsulation model
Click to show internal directories.
Click to hide internal directories.