diff options
author | Wolfy-J <[email protected]> | 2018-06-11 11:28:24 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-11 11:28:24 +0300 |
commit | 2f135b359575cc1625d1461bb6d8e478da8ccf54 (patch) | |
tree | 8561f84318c3a291f4a38df6b347954bda777e41 /service/http/config.go | |
parent | 6efaa0aa951240c2bb643761f103ee3f0fafb4d9 (diff) |
refactor
Diffstat (limited to 'service/http/config.go')
-rw-r--r-- | service/http/config.go | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/service/http/config.go b/service/http/config.go new file mode 100644 index 00000000..d92b4c60 --- /dev/null +++ b/service/http/config.go @@ -0,0 +1,28 @@ +package http + +import ( + "github.com/spiral/roadrunner" +) + +// Configures RoadRunner HTTP server. +type Config struct { + // Enable enables http svc. + Enable bool + + // Address and port to handle as http server. + Address string + + // MaxRequest specified max size for payload body in bytes, set 0 to unlimited. + MaxRequest int64 + + // Uploads configures uploads configuration. + Uploads *UploadsConfig + + // Workers configures roadrunner server and worker pool. + Workers *roadrunner.ServerConfig +} + +// Valid validates the configuration. +func (cfg *Config) Valid() error { + return nil +} |