config.go 506 B

12345678910111213141516171819202122
  1. package app
  2. type Config struct {
  3. DifyURL string `envconfig:"DIFY_URL"`
  4. DifyCallingKey string `envconfig:"DIFY_CALLING_KEY"`
  5. DifyCallingPort int16 `envconfig:"DIFY_CALLING_PORT"`
  6. PluginHost string `envconfig:"PLUGIN_HOST"`
  7. PluginPort int16 `envconfig:"PLUGIN_PORT"`
  8. StoragePath string `envconfig:"STORAGE_PATH"`
  9. Platform string `envconfig:"PLATFORM"`
  10. RoutinePoolSize int `envconfig:"ROUTINE_POOL_SIZE"`
  11. }
  12. const (
  13. PLATFORM_LOCAL = "local"
  14. PLATFORM_AWS_LAMBDA = "aws_lambda"
  15. )