-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
68 lines (60 loc) · 1.42 KB
/
structs.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package webui
import (
"github.com/phntom/nixeepass/orm"
"net/url"
"time"
)
type DashboardPage struct {
CSRF string
NeedsLogin bool
AppName string
BrandName string
UserID string
UserName string
Devices []orm.Device
BackupActiveModified time.Time
Backups []orm.Backup
HTTPConfig *httpConfig
}
type GrantPage struct {
CSRF string
HTTPConfig *httpConfig
AppName string
BrandName string
NeedsLogin bool
UserID string
UserName string
Device *orm.Device
URL *url.URL
}
type httpConfig struct {
BindAddress string `mapstructure:"listen"`
Endpoints httpConfigEndpoints
Headers map[string]string
Log httpConfigLogs
Auth httpConfigAuth
}
type httpConfigEndpoints struct {
Dashboard string
Grant string
Revoke string
Login string
Liveliness string
Readiness string
Webdav string
LivelinessReadinessSecret string
PublicPrefix string
}
type httpConfigLogs struct {
Method bool
RemoteAddr bool
Headers []string
}
type httpConfigAuth struct {
MockUserID string `mapstructure:"mock_user_id"`
}
type dashboardConfig struct {
AppName string
BrandName string
IconMap map[string]string `mapstructure:"icons"`
}