ing
This commit is contained in:
parent
796da7bbfe
commit
e45555a9b6
9
core/config/proxy.go
Normal file
9
core/config/proxy.go
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
package config
|
||||||
|
|
||||||
|
type Proxy struct {
|
||||||
|
Host string `json:"host" yaml:"host" toml:"host"`
|
||||||
|
Port int `json:"port" yaml:"port" toml:"port"`
|
||||||
|
UseAuth bool `default:"false" json:"useAuth" yaml:"useAuth" toml:"useAuth"`
|
||||||
|
User string `json:"user" yaml:"user" toml:"user"`
|
||||||
|
Password string `json:"password" yaml:"password" toml:"password"`
|
||||||
|
}
|
|
@ -2,3 +2,4 @@ package: git.loafle.net/overflow/commons-go
|
||||||
import:
|
import:
|
||||||
- package: github.com/google/gopacket
|
- package: github.com/google/gopacket
|
||||||
version: ^1.1.14
|
version: ^1.1.14
|
||||||
|
- package: git.loafle.net/commons/server-go
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
type Account struct {
|
type Account struct {
|
||||||
Name string `json:"name"`
|
Name string `required:"true" json:"name"`
|
||||||
APIKey string `json:"apiKey"`
|
APIKey string `required:"true" json:"apiKey"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
package config
|
package config
|
||||||
|
|
||||||
|
import (
|
||||||
|
csswc "git.loafle.net/commons/server-go/socket/web/client"
|
||||||
|
"git.loafle.net/overflow/commons-go/core/config"
|
||||||
|
)
|
||||||
|
|
||||||
type Central struct {
|
type Central struct {
|
||||||
Host string `json:"host"`
|
Host string `required:"true" json:"host"`
|
||||||
Port int `json:"port"`
|
Port int `required:"true" json:"port"`
|
||||||
|
Connector *csswc.Connectors `required:"true" json:"connector"`
|
||||||
|
Proxy *config.Proxy `json:"proxy"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user