42 lines
696 B
Go
42 lines
696 B
Go
package common
|
|
|
|
type Config struct {
|
|
Port int `json:"listenPort"`
|
|
Organization string `json:"organization"`
|
|
DASH string `json:"dashurl"`
|
|
PVE string `json:"pveurl"`
|
|
API string `json:"apiurl"`
|
|
}
|
|
|
|
type StaticFile struct {
|
|
Data string
|
|
MimeType MimeType
|
|
}
|
|
|
|
// type used for templated <select>
|
|
type Select struct {
|
|
ID string
|
|
Name string
|
|
Options []Option
|
|
}
|
|
|
|
// type used for templated <option>
|
|
type Option struct {
|
|
Selected bool
|
|
Value string
|
|
Display string
|
|
}
|
|
|
|
type RequestType int
|
|
|
|
type RequestContext struct {
|
|
Cookies map[string]string
|
|
Body map[string]any
|
|
}
|
|
|
|
type Auth struct {
|
|
Username string
|
|
Token string
|
|
CSRF string
|
|
}
|