diff options
author | NeonXP <i@neonxp.dev> | 2022-11-21 03:47:16 +0300 |
---|---|---|
committer | NeonXP <i@neonxp.dev> | 2022-12-04 19:06:13 +0300 |
commit | 9d46ca252151a2c48434f9ec201bcb3c9133ec78 (patch) | |
tree | b146450cf0c09355f06656768f88043078195f0e /cmd/api/flags.go | |
parent | 340a623e1a35efe0182cadd780a5a3385b526705 (diff) |
Chi router
Diffstat (limited to 'cmd/api/flags.go')
-rw-r--r-- | cmd/api/flags.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmd/api/flags.go b/cmd/api/flags.go new file mode 100644 index 0000000..b4910fa --- /dev/null +++ b/cmd/api/flags.go @@ -0,0 +1,10 @@ +package main + +import "flag" + +var ( + cluster = flag.String("cluster", "", "Master node address (ex: 192.168.1.10:5657)") + clusterAddr = flag.String("cluster_addr", ":5657", "Self address for cluster") + apiAddr = flag.String("api_addr", ":5656", "API address") + dbPath = flag.String("db_path", "/var/djson.db", "DB file") +) |