forked from SpeckiJ/UserManager
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstructs.go
More file actions
30 lines (27 loc) · 775 Bytes
/
structs.go
File metadata and controls
30 lines (27 loc) · 775 Bytes
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 main
// ServerConfig holds all configuration options parsed from config.conf file
type ServerConfig struct {
ServerBindAddr string
LDAPAdmin string
LDAPPass string
JWTPrivateRSAKey string
JWTPublicRSAKey string
SSLCertificate string
SSLKeyFile string
LDAPServer string
LDAPPort string
LDAPBaseDN string
LDAPAdminfilter string
LDAPUserfilter string
}
// User is the internal Representation of User to be added/removed/edited
type User struct {
Username string `json:"username"`
Password string `json:"password"`
Fs string `json:"fs"`
Group string `json:"groupname"`
}
// Group is the internal Representation of Group to be added/removed
type Group struct {
Name string `json:"groupname"`
}