Navigation Menu

Skip to content

Commit

Permalink
fixed the rest & resp description
Browse files Browse the repository at this point in the history
  • Loading branch information
alash3al committed Jan 11, 2019
1 parent cdb4ec1 commit da0780a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -152,9 +152,9 @@ Usage
-dsn string -dsn string
the data source name for the selected engine (default "root:root@tcp(127.0.0.1)/test?multiStatements=true") the data source name for the selected engine (default "root:root@tcp(127.0.0.1)/test?multiStatements=true")
-resp string -resp string
the rest api listen address (default ":3678") the resp (redis protocol) server listen address (default ":3678")
-rest string -rest string
the rest api listen address (default ":8025") the http restful api listen address (default ":8025")
-workers int -workers int
the maximum workers count (default 4) the maximum workers count (default 4)
``` ```
Expand Down
4 changes: 2 additions & 2 deletions vars.go
Expand Up @@ -14,8 +14,8 @@ var (
flagDBDriver = flag.String("driver", "mysql", "the sql driver to be used") flagDBDriver = flag.String("driver", "mysql", "the sql driver to be used")
flagDBDSN = flag.String("dsn", "root:root@tcp(127.0.0.1)/test?multiStatements=true", "the data source name for the selected engine") flagDBDSN = flag.String("dsn", "root:root@tcp(127.0.0.1)/test?multiStatements=true", "the data source name for the selected engine")
flagAPIFile = flag.String("config", "./config.example.hcl", "the config file(s) that contains your endpoints configs, it accepts comma seprated list of glob style pattern") flagAPIFile = flag.String("config", "./config.example.hcl", "the config file(s) that contains your endpoints configs, it accepts comma seprated list of glob style pattern")
flagRESTListenAddr = flag.String("rest", ":8025", "the rest api listen address") flagRESTListenAddr = flag.String("rest", ":8025", "the http restful api listen address")
flagRESPListenAddr = flag.String("resp", ":3678", "the rest api listen address") flagRESPListenAddr = flag.String("resp", ":3678", "the resp (redis protocol) server listen address")
flagWorkers = flag.Int("workers", runtime.NumCPU(), "the maximum workers count") flagWorkers = flag.Int("workers", runtime.NumCPU(), "the maximum workers count")
) )


Expand Down

0 comments on commit da0780a

Please sign in to comment.