Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfig ¶
SaveConfig takes a config and saves it to the local file, config.toml.
Types ¶
type Config ¶
type Config struct { Zendesk Zendesk Slack Slack LogLevel string SLA SLA UpdateFreq Duration TriageEnabled bool Metadata Metadata Port int Plugins plugins.Plugins Postgres Postgres }
Config maps the values of the configuration file to a struct usable by the rest of the app
func LoadConfig ¶
func LoadConfig() (config Config)
LoadConfig grabs the command line argument for where the configuration file is located and loads that into memory.
type Level ¶
type Level struct { Tag string Low Duration Normal Duration High Duration Urgent Duration Notify bool }
Level reflects the 4 priority levels Zendesk uses for SLA.
type Metadata ¶
type Metadata struct {
Server string
}
Metadata holds configuration related to the server metadata used in status calls
Click to show internal directories.
Click to hide internal directories.