summaryrefslogtreecommitdiff
path: root/service/http/config.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-10 17:06:06 +0300
committerWolfy-J <[email protected]>2018-06-10 17:06:06 +0300
commit232aa8f3c20a060e556ab431467f4f7b3f83bfbf (patch)
treea9dacbc142020cabae6a0708733aadb7e789aea5 /service/http/config.go
parent3fe85e9d92f5f98337e8f7fd9a14e6b66b9694bd (diff)
http service
Diffstat (limited to 'service/http/config.go')
-rw-r--r--service/http/config.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/service/http/config.go b/service/http/config.go
deleted file mode 100644
index efcaae30..00000000
--- a/service/http/config.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package http
-
-import (
- "github.com/spiral/roadrunner"
- "fmt"
-)
-
-// Configures RoadRunner HTTP server.
-type Config struct {
- // Enable enables http service.
- Enable bool
-
- // Host and port to handle as http server.
- Host, Port 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
-}
-
-// httpAddr returns prepared http listen address.
-func (cfg *Config) httpAddr() string {
- return fmt.Sprintf("%s:%v", cfg.Host, cfg.Port)
-}