ing
This commit is contained in:
6
config/central.go
Normal file
6
config/central.go
Normal 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
8
config/config.go
Normal 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
5
config/domain.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package config
|
||||
|
||||
type DomainConfig struct {
|
||||
APIKey string `json:"apiKey" yaml:"apiKey" toml:"apiKey"`
|
||||
}
|
||||
5
config/noauth.go
Normal file
5
config/noauth.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package config
|
||||
|
||||
type NoAuthProbeConfig struct {
|
||||
TempID string `json:"tempID" yaml:"tempID" toml:"tempID"`
|
||||
}
|
||||
Reference in New Issue
Block a user