This commit is contained in:
crusader
2017-09-21 17:38:05 +09:00
parent b1adb63ea8
commit 726b24f878
22 changed files with 568 additions and 156 deletions

6
config/central.go Normal file
View File

@@ -0,0 +1,6 @@
package config
type CentralConfig struct {
URL string `json:"url" yaml:"url" toml:"url"`
EntryPoints map[string]string `json:"entryPoints" yaml:"entryPoints" toml:"entryPoints"`
}

8
config/config.go Normal file
View File

@@ -0,0 +1,8 @@
package config
var Config AllConfig
type AllConfig struct {
Domain DomainConfig `json:"domain" yaml:"domain" toml:"domain"`
Central CentralConfig `json:"central" yaml:"central" toml:"central"`
}

5
config/domain.go Normal file
View File

@@ -0,0 +1,5 @@
package config
type DomainConfig struct {
APIKey string `json:"apiKey" yaml:"apiKey" toml:"apiKey"`
}

5
config/noauth.go Normal file
View File

@@ -0,0 +1,5 @@
package config
type NoAuthProbeConfig struct {
TempID string `json:"tempID" yaml:"tempID" toml:"tempID"`
}