Documentation ¶
Index ¶
Constants ¶
View Source
const DatabasePath = "/tmp/students.db"
DatabasePath is database path...
Variables ¶
View Source
var Cities = []models.City{ { Name: "All", ID: "", Promotions: []string{tek1, tek2, tek3, tek4, tek5}, }, { Name: "Bordeaux", ID: "BDX", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Lille", ID: "LIL", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Lyon", ID: "LYN", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Marseille", ID: "MAR", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Montpellier", ID: "MPL", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Nancy", ID: "NCY", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Nantes", ID: "NAN", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Nice", ID: "NCE", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Paris", ID: "PAR", Promotions: []string{tek1, tek2, tek3, tek4, tek5}, }, { Name: "Rennes", ID: "REN", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Strasbourg", ID: "STG", Promotions: []string{tek1, tek2, tek3}, }, { Name: "Toulouse", ID: "TLS", Promotions: []string{tek1, tek2, tek3}, }, }
Cities list
Functions ¶
This section is empty.
Types ¶
type Authentication ¶
type Authentication struct { Login string `json:"login"` Password string `json:"password"` Token string `json:"-"` }
Authentication JSON file
func AuthenticationDataFromEnvironment ¶
func AuthenticationDataFromEnvironment() *Authentication
AuthenticationDataFromEnvironment get data from Env
func AuthenticationDataFromFile ¶
func AuthenticationDataFromFile() (*Authentication, error)
AuthenticationDataFromFile loads the authentication file and delete it
Click to show internal directories.
Click to hide internal directories.