mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Bunch of cleanup and reorg
This commit is contained in:
31
api/config.go
Normal file
31
api/config.go
Normal file
@@ -0,0 +1,31 @@
|
||||
package api
|
||||
|
||||
type Config struct {
|
||||
CloudFlare struct {
|
||||
Email string `json:"email"`
|
||||
ApiKey string `json:"api_key"`
|
||||
ZoneId string `json:"zone_id"`
|
||||
} `json:"cloudflare"`
|
||||
Cache struct {
|
||||
Host string `json:"host"`
|
||||
Token string `json:"token"`
|
||||
ProjectId string `json:"project_id"`
|
||||
}
|
||||
Iron struct {
|
||||
Token string `json:"token"`
|
||||
ProjectId string `json:"project_id"`
|
||||
SuperToken string `json:"super_token"`
|
||||
WorkerHost string `json:"worker_host"`
|
||||
AuthHost string `json:"auth_host"`
|
||||
} `json:"iron"`
|
||||
Logging struct {
|
||||
To string `json:"to"`
|
||||
Level string `json:"level"`
|
||||
Prefix string `json:"prefix"`
|
||||
}
|
||||
}
|
||||
|
||||
func (c *Config) Validate() error {
|
||||
// TODO:
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user