config

package
v0.0.0-...-91e90d9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2017 License: MIT Imports: 4 Imported by: 3

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL