Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var JwtSigningKey = os.Getenv("JWT_SIGNING_KEY")
JwtSigningKey is a key used for signing jwt
Functions ¶
func NewTwilioTokens ¶
func NewTwilioTokens() (twilioAccountSid, twilioAuthToken, phoneNumber string)
NewTwilioTokens returns twilio account sid and auth token
Types ¶
type DBConfig ¶
type DBConfig struct { DBName string `default:"go_echo_api_boilerplate_development" env:"DB_NAME"` Host string `default:"db" env:"DB_HOST"` User string `default:"mysql" env:"DB_USER"` Password string `default:"mysql" env:"DB_PASSWORD"` Port string `default:"3306" env:"DB_PORT"` }
DBConfig database config info
func NewDBConfig ¶
NewDB returns database configuration struct
func NewTestDBConfig ¶
NewTestDBConfig returns test db config
Click to show internal directories.
Click to hide internal directories.