github.com/yandex/pandora@v0.5.32/tests/acceptance/config_model.go (about) 1 package acceptance 2 3 type PandoraConfigLog struct { 4 Level string `yaml:"level"` 5 } 6 type PandoraConfigMonitoringExpVar struct { 7 Enabled bool `yaml:"enabled"` 8 Port int `yaml:"port"` 9 } 10 type PandoraConfigMonitoring struct { 11 ExpVar PandoraConfigMonitoringExpVar `yaml:"expvar"` 12 } 13 type PandoraConfigGRPCGun struct { 14 Type string `yaml:"type"` 15 Target string `yaml:"target"` 16 TLS bool `yaml:"tls"` 17 ReflectPort *int64 `yaml:"reflect_port,omitempty"` 18 ReflectMetadata map[string]string `yaml:"reflect_metadata,omitempty"` 19 SharedClient struct { 20 ClientNumber int `yaml:"client-number,omitempty"` 21 Enabled bool `yaml:"enabled"` 22 } `yaml:"shared-client,omitempty"` 23 } 24 type PandoraConfigAmmo struct { 25 Type string `yaml:"type"` 26 File string `yaml:"file"` 27 } 28 type PandoraConfigResult struct { 29 Type string `yaml:"type"` 30 } 31 type PandoraConfigRps struct { 32 Type string `yaml:"type"` 33 Duration string `yaml:"duration"` 34 Ops int `yaml:"ops"` 35 } 36 type PandoraConfigStartup struct { 37 Type string `yaml:"type"` 38 Times int `yaml:"times"` 39 } 40 type PandoraConfigGRPCPool struct { 41 ID string `yaml:"id"` 42 Gun PandoraConfigGRPCGun `yaml:"gun"` 43 Ammo PandoraConfigAmmo `yaml:"ammo"` 44 Result PandoraConfigResult `yaml:"result"` 45 Rps []PandoraConfigRps `yaml:"rps"` 46 Startup PandoraConfigStartup `yaml:"startup"` 47 } 48 type PandoraConfigGRPC struct { 49 Pools []PandoraConfigGRPCPool `yaml:"pools"` 50 Log *PandoraConfigLog `yaml:"log"` 51 Monitoring *PandoraConfigMonitoring `yaml:"monitoring"` 52 }