|
|
@ -23,16 +23,17 @@ type Logger struct {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Network struct {
|
|
|
|
type Network struct {
|
|
|
|
Name string `toml:"name"`
|
|
|
|
Name string `toml:"name"`
|
|
|
|
Type string `toml:"type"`
|
|
|
|
Type string `toml:"type"`
|
|
|
|
Address string `toml:"address"`
|
|
|
|
Address string `toml:"address"`
|
|
|
|
Cert string `toml:"cert"`
|
|
|
|
Cert string `toml:"cert"`
|
|
|
|
Macaroon string `toml:"macaroon"`
|
|
|
|
Macaroon string `toml:"macaroon"`
|
|
|
|
MacaroonTimeOut int64 `toml:"macaroon_timeout"`
|
|
|
|
MacaroonTimeOut int64 `toml:"macaroon_timeout"`
|
|
|
|
MacaroonIP string `toml:"macaroon_ip"`
|
|
|
|
MacaroonIP string `toml:"macaroon_ip"`
|
|
|
|
MaxMsgRecvSize int `toml:"max_msg_recv_size"`
|
|
|
|
MaxMsgRecvSize int `toml:"max_msg_recv_size"`
|
|
|
|
ConnTimeout int `toml:"conn_timeout"`
|
|
|
|
ConnTimeout int `toml:"conn_timeout"`
|
|
|
|
PoolCapacity int `toml:"pool_capacity"`
|
|
|
|
PoolCapacity int `toml:"pool_capacity"`
|
|
|
|
|
|
|
|
Aliases Aliases `toml:"aliases"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type Views struct {
|
|
|
|
type Views struct {
|
|
|
@ -45,6 +46,8 @@ type View struct {
|
|
|
|
Columns []string `toml:"columns"`
|
|
|
|
Columns []string `toml:"columns"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
type Aliases map[string]string
|
|
|
|
|
|
|
|
|
|
|
|
func Load(path string) (*Config, error) {
|
|
|
|
func Load(path string) (*Config, error) {
|
|
|
|
c := &Config{}
|
|
|
|
c := &Config{}
|
|
|
|
|
|
|
|
|
|
|
|