Add marshall_request to watchdog for passing header to functions

This commit is contained in:
Alex Ellis
2017-03-31 16:15:02 +00:00
parent 43a66e4043
commit 04be17ce49
8 changed files with 87 additions and 23 deletions

View File

@ -57,6 +57,8 @@ func (ReadConfig) Read(hasEnv HasEnv) WatchdogConfig {
cfg.writeDebug = parseBoolValue(hasEnv.Getenv("write_debug"))
cfg.marshallRequest = parseBoolValue(hasEnv.Getenv("marshall_request"))
return cfg
}
@ -69,4 +71,6 @@ type WatchdogConfig struct {
// writeDebug write console stdout statements to the container
writeDebug bool
marshallRequest bool
}