Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DbConn *sql.DB
)
DbConn stores the connexion to the database
Functions ¶
func CreateAccount ¶
func CreateAccount(userInput RequestRegister) (err error)
CreateAccount method for create an account with role operator
Types ¶
type Config ¶
type Config struct { DbHost string `env:"DB_HOST"` DbName string `env:"MYSQL_DATABASE"` DbUser string `env:"MYSQL_USER"` DbPassword string `env:"MYSQL_PASSWORD"` DbConn *sql.DB }
Config for DB connection
type RequestRegister ¶
Click to show internal directories.
Click to hide internal directories.