Documentation ¶
Index ¶
- Variables
- func CheckIfUserExists(login string) (bool, error)
- func GetSettings(login string) (map[string]int, error)
- func GetUserPassword(login string) (string, error)
- func InitDB()
- func InsertAgentIntoDB(agent *Agent) error
- func InsertClIntoDB(c *Calculation) error
- func InsertUserIntoDB(u *User) error
- func UpdateUserPassword(login, password string) error
- type Agent
- type Calculation
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *sql.DB
Functions ¶
func CheckIfUserExists ¶
func GetUserPassword ¶
func InsertAgentIntoDB ¶
func InsertClIntoDB ¶
func InsertClIntoDB(c *Calculation) error
func InsertUserIntoDB ¶
func UpdateUserPassword ¶
Types ¶
type Agent ¶
func GetAgentsFromDB ¶
type Calculation ¶
func GetClsFromDB ¶
func GetClsFromDB(login string) ([]Calculation, error)
Click to show internal directories.
Click to hide internal directories.