Remove Buffalo (#1010)

* Remove Buffalo

* gofmt

* pr fixes

* fix subrouter

* bring back secure middleware + pr fixes

* better place for subrouter

* vendor
This commit is contained in:
Marwan Sulaiman
2018-12-22 20:24:25 -05:00
committed by GitHub
parent 36aba5915c
commit 5870aeee8d
1129 changed files with 465 additions and 371408 deletions
+1 -3
View File
@@ -69,7 +69,6 @@ func TestEnvOverrides(t *testing.T) {
GoGetWorkers: 10,
ProtocolWorkers: 10,
LogLevel: "info",
BuffaloLogLevel: "info",
GoBinary: "go11",
CloudRuntime: "gcp",
TimeoutConf: TimeoutConf{
@@ -206,7 +205,6 @@ func TestParseExampleConfig(t *testing.T) {
expConf := &Config{
GoEnv: "development",
LogLevel: "debug",
BuffaloLogLevel: "debug",
GoBinary: "go",
GoGetWorkers: 30,
ProtocolWorkers: 30,
@@ -221,6 +219,7 @@ func TestParseExampleConfig(t *testing.T) {
BasicAuthPass: "",
Storage: expStorage,
TraceExporterURL: "http://localhost:14268",
TraceExporter: "",
StatsExporter: "prometheus",
}
@@ -245,7 +244,6 @@ func getEnvMap(config *Config) map[string]string {
"ATHENS_GOGET_WORKERS": strconv.Itoa(config.GoGetWorkers),
"ATHENS_PROTOCOL_WORKERS": strconv.Itoa(config.ProtocolWorkers),
"ATHENS_LOG_LEVEL": config.LogLevel,
"BUFFALO_LOG_LEVEL": config.BuffaloLogLevel,
"ATHENS_CLOUD_RUNTIME": config.CloudRuntime,
"ATHENS_TIMEOUT": strconv.Itoa(config.Timeout),
}