Commit Graph

13 Commits

Author SHA1 Message Date
Kelvin Clement Mwinuka
1bc9e9a7ca Moved main.go to cmd/main.go 2024-07-09 17:42:01 +08:00
Kelvin Mwinuka
c6a85b6cbb Moved volumes folder to internal folder. Moved main.go file to the project's root instead of the cmd directory. 2024-07-04 11:50:35 +08:00
Kelvin Mwinuka
9b0d590171 Removed RaftBindPort config. Raft bind address and port are dynamically assigned on startup instead of configured manually. Replaced memberlist-port configuration with discovery-port. 2024-06-20 04:20:31 +08:00
Kelvin Clement Mwinuka
97f4617d86 Moved all packages from /pkg directory to the root directory. Deleted /pkg directory. Pass keyspace functions to raft package instead of an EchoVault instance. This removes dependency on the echovault pakage from the raft package. 2024-04-28 00:37:45 +08:00
Kelvin Clement Mwinuka
b6ddb43a49 Removed duplicate imports for set, sorted_set, pubsub and acl modules. Moved /modules from /pkg to /internal. Delted commands package: Commands will now be automatically loaded when an EchoVault instance is initialised. 2024-04-24 22:37:16 +08:00
Kelvin Mwinuka
389c871781 Start raft and memberlist layers in NewEchoVault. Return error fron NewEchoVault function when TLS config does not match certificate options provided 2024-04-01 23:24:22 +08:00
Kelvin Mwinuka
bc188cfea4 Moved some types into internal folder as they will do not need to be exported. Changed GetState method to getState to make it private to the echovault package 2024-03-26 20:26:48 +08:00
Kelvin Mwinuka
d9f1b2276a Removed context parameter from EchoVault, raft, and memberlist shutdown functions 2024-03-26 18:58:53 +08:00
Kelvin Mwinuka
7fff89a250 Removed context argumebt from server start method in cmd/main.go 2024-03-26 18:52:22 +08:00
Kelvin Mwinuka
88a8e2aae6 Created DefaultConfig to be used when embedding echovaule. Moved ACL and PubSub to internal packages with only the associated commands in the modules folder. Initialise ACL and PubSub when creating new EchoVault instance which removed the need to pass WithACL and WithPubSub options. 2024-03-26 18:15:27 +08:00
Kelvin Mwinuka
7c39e5f477 Created commands and config packages in pkg folder for easy import 2024-03-26 15:04:05 +08:00
Kelvin Mwinuka
7fac4143f5 Moved utils.go file to internals folder 2024-03-26 14:00:18 +08:00
Kelvin Mwinuka
5c86fb6215 Moved main.go file to cmd subfolder. Renamed src folder to pkg folder as it will contain all the importable package code. Moved config.go to new internals folder 2024-03-25 21:13:40 +08:00