mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-16 13:00:40 +08:00
Removed http options flag as it will not be used for now.
Moved server cluster receiver functions into cluster.go. Moved keyspace receiver functions into keyspace.go. Moved module and command loading into modules.go. Updated Dockerfile and docker-compose to remove http flag to server.
This commit is contained in:
@@ -15,7 +15,6 @@ type Config struct {
|
||||
Key string `json:"key" yaml:"key"`
|
||||
Cert string `json:"cert" yaml:"cert"`
|
||||
Port uint16 `json:"port" yaml:"port"`
|
||||
HTTP bool `json:"http" yaml:"http"`
|
||||
PluginDir string `json:"plugins" yaml:"plugins"`
|
||||
ServerID string `json:"serverId" yaml:"serverId"`
|
||||
JoinAddr string `json:"joinAddr" yaml:"joinAddr"`
|
||||
@@ -36,7 +35,6 @@ func GetConfig() (Config, error) {
|
||||
key := flag.String("key", "", "The private key file path.")
|
||||
cert := flag.String("cert", "", "The signed certificate file path.")
|
||||
port := flag.Int("port", 7480, "Port to use. Default is 7480")
|
||||
http := flag.Bool("http", false, "Use HTTP protocol instead of raw TCP. Default is false")
|
||||
pluginDir := flag.String("pluginDir", "", "Directory where plugins are located.")
|
||||
serverId := flag.String("serverId", "1", "Server ID in raft cluster. Leave empty for client.")
|
||||
joinAddr := flag.String("joinAddr", "", "Address of cluster member in a cluster to you want to join.")
|
||||
@@ -75,7 +73,6 @@ It is a plain text value by default but you can provide a SHA256 hash by adding
|
||||
TLS: *tls,
|
||||
Key: *key,
|
||||
Cert: *cert,
|
||||
HTTP: *http,
|
||||
PluginDir: *pluginDir,
|
||||
Port: uint16(*port),
|
||||
ServerID: *serverId,
|
||||
|
Reference in New Issue
Block a user