Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Username for celcat. UserName string `json:"userName"` // Password for celcat. UserPassword string `json:"userPassword"` // The host of the celcat instance. CelcatHost string `json:"celcatHost"` // Run in continuous mode. Will query the calendar periodicly according to the period defined in the config. Continuous bool `json:"continuous"` // Time in seconds between each query in daemon mode. Default : 1800 QueryDelay int `json:"queryDelay"` // Number of weeks to query. Default : 4 Weeks int `json:"weeks"` // Path to the chrome executable. Default : "/usr/bin/chromium" ChromePath string `json:"chromePath"` // Enable PNG output (Require Chromium on your computer). Default : false PNG bool `json:"png"` // Output directory for the PNG output. Default : "out/calendar/png/" PNGPath string `json:"pngPath"` // Width of the PNG output. Default : 1920 PNGWidth int `json:"pngWidth"` // Height of the PNG output. Default : 1080 PNGHeigh int `json:"pngHeigh"` // Enable HTML output. Default : false HTML bool `json:"html"` // The template used to render the html page. // Default : "web/templates/calendar.go.html" HtmlTemplate string `json:"htmlTemplate"` // The template used to render the html page. // Default : "web/templates/index.go.html" IndexTemplate string `json:"indexTemplate"` // Output directory for the HTML output. Default : "out/calendar/html/" HTMLPath string `json:"htmlPath"` // Enable next Alarm output. Default : false NextAlarm bool `json:"nextAlarm"` // Output directory for the nextAlarm json NextAlarmPath string `json:"nextAlarmPath"` // Enable ICS output. Default : true ICS bool `json:"ics"` // Output directory for the ICS output. Default : "out/calendar/ics/" ICSPath string `json:"icsPath"` // Enable the web server. Web bool `json:"web"` //Web listen Port. Default : 8080 WebPort string `json:"webPort"` // List of groups to query Groups map[string][]Groupe `json:"groups"` // Default Campus DefaultCampus string `json:"defaultCampus"` // Allow all cors AllowCORS bool `json:"allowCors"` }
func ReadConfig ¶
Click to show internal directories.
Click to hide internal directories.