config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const LiaHomePage = "https://liagame.com"
View Source
const PropertyID = "UA-122844498-1" // Id of google analytics project
View Source
const SettingsFile = ".lia"
View Source
const SettingsFileExtension = "json"
View Source
const TestPropertyID = "UA-122844498-2"
View Source
const VERSION = "1.0.1"

Variables

View Source
var AuthUrl string
View Source
var AuthVerifyUrl string
View Source
var BotUploadUrl string
View Source
var LoggedInUser string
View Source
var OperatingSystem = runtime.GOOS
View Source
var PathToBots string

Store path to this program executables

View Source
var PathToData string
View Source
var ReleasesUrl string
View Source
var ReleasesZipUrlBase string
View Source
var UserToken string

Functions

func SetConfig

func SetConfig(path string) error

func Setup

func Setup()

Types

type Config

type Config struct {
	Version   string     `json:"version"`
	GamePort  int        `json:"gamePort"`
	Languages []Language `json:"languages"`
}
var Cfg *Config

type Language

type Language struct {
	Name           string `json:"name"`
	BotURL         string `json:"botUrl"`
	PrepareUnix    string `json:"prepareUnix"`
	RunUnix        string `json:"runUnix"`
	PrepareWindows string `json:"prepareWindows"`
	RunWindows     string `json:"runWindows"`
	CleanupUnix    string `json:"cleanupUnix"`
	CleanupWindows string `json:"cleanupWindows"`
}

Jump to

Keyboard shortcuts

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