-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
settings.go
30 lines (29 loc) · 1.25 KB
/
settings.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package snd
// Settings represents the basic settings for S&D.
type Settings struct {
PrinterType string `json:"printerType"`
PrinterEndpoint string `json:"printerEndpoint"`
PrinterWidth int `json:"printerWidth"`
Commands struct {
ExplicitInit bool `json:"explicitInit"`
Cut bool `json:"cut"`
ForceStandardMode bool `json:"forceStandardMode"`
LinesBefore int `json:"linesBefore"`
LinesAfter int `json:"linesAfter"`
SplitPrinting bool `json:"splitPrinting"`
SplitHeight int `json:"splitHeight"`
SplitDelay int `json:"splitDelay"`
} `json:"commands"`
SpellcheckerLanguages []string `json:"spellcheckerLanguages"`
PackageRepos []string `json:"packageRepos"`
SyncKey string `json:"syncKey"`
SyncEnabled bool `json:"syncEnabled"`
AIEnabled bool `json:"aiEnabled"`
AIAlwaysAllow bool `json:"aiAlwaysAllow"`
AIApiKey string `json:"aiApiKey"`
AIModel string `json:"aiModel"`
AIProvider string `json:"aiProvider"`
AIContextWindow int `json:"aiContextWindow"`
AIMaxTokens int `json:"aiMaxTokens"`
AIURL string `json:"aiUrl"`
}