Cleanup configuration setting code

This commit is contained in:
Tobie Morgan Hitchcock 2017-02-22 01:40:54 +00:00
parent 715eb86cec
commit 1b5b3c9643

View file

@ -38,7 +38,7 @@ type Auth struct {
type Options struct { type Options struct {
DB struct { DB struct {
Key []byte // Data encryption key Key []byte // Data encryption key
Code string // Data encruption key string Code string // Data encryption key string
Path string // Path to store the data file Path string // Path to store the data file
Host string // Surreal host to connect to Host string // Surreal host to connect to
Port string // Surreal port to connect to Port string // Surreal port to connect to
@ -68,28 +68,20 @@ type Options struct {
} }
Auth struct { Auth struct {
Auth string // Master authentication username:password Auth string // Master authentication user:pass
User string // Master authentication username User string // Master authentication username
Pass string // Master authentication password Pass string // Master authentication password
Addr []string Addr []string // Allowed ip ranges for authentication
Nets []*net.IPNet Nets []*net.IPNet // Allowed cidr ranges for authentication
} }
Node struct { Node struct {
Host string // Node hostname Host string // Node hostname
Name string // Name of this node Name string // Name of this node
Uniq string // Uniq of this node
UUID string // UUID of this node UUID string // UUID of this node
Attr string // Comma separated tags for this node
Tags []string // Slice of tags for this node
Join []string // Slice of cluster peers to join Join []string // Slice of cluster peers to join
} }
Backups struct {
Time string
Path string
}
Logging struct { Logging struct {
Level string // Stores the configured logging level Level string // Stores the configured logging level
Output string // Stores the configured logging output Output string // Stores the configured logging output