Commit Graph

14 Commits

Author SHA1 Message Date
Kelvin Clement Mwinuka
83bd37f182 Moved server and client configs into their separate folders instead of in a shared utils folder 2023-07-22 01:12:44 +08:00
Kelvin Clement Mwinuka
bb74a5b5cf Added server and client configurations to support cluser identification and specific cluster node connection. Implemented starting of new raft node. 2023-07-19 23:24:05 +08:00
Kelvin Clement Mwinuka
91e1ba5555 Moved serialization functions to utils. 2023-07-13 12:03:00 +08:00
Kelvin Clement Mwinuka
261cb717bf Simplified encoding on client side by removing all explicit command cases.
Encode RESP message directly instead of using resp package.
Encode error directly on core server instead of using Encode helper function.
2023-07-04 01:32:03 +08:00
Kelvin Clement Mwinuka
deda504ff0 Moved configuration parsing to utils package as it's shared by both client and server 2023-07-01 22:36:57 +08:00
Kelvin Clement Mwinuka
ef140c8427 Added array serialization to encode function. Moved message reading to utils packages as it's used by both server and client 2023-07-01 21:59:41 +08:00
Kelvin Clement Mwinuka
eb188deb7b Read server response immediately after sending command in the same goroutine. The previous implementation had the server reads happening on a different goroutine. 2023-06-29 02:26:49 +08:00
Kelvin Clement Mwinuka
ae73169865 Removed unused mutex 2023-06-27 01:07:11 +08:00
Kelvin Clement Mwinuka
58cf302460 Created encoding functions for simple string and error. 2023-06-27 01:04:44 +08:00
Kelvin Clement Mwinuka
40be716513 Added resp package for encoding and decoding resp messages.
Created encoding functions for the following commands: ping, set, setnx, get, mget, incr, incrby, incrbyfloat.
Created utils packages for shared utility functions.
2023-06-24 05:38:59 +08:00
Kelvin Clement Mwinuka
0b1c76f8b6 Send RESP encoded message with double quotes and escaped delimiters to server 2023-06-23 02:56:49 +08:00
Kelvin Clement Mwinuka
d1953c89e9 Added serialization package. Encode user input. 2023-06-22 22:54:37 +08:00
Kelvin Clement Mwinuka
84220cd82c Implemented TLS support 2023-06-22 02:26:49 +08:00
Kelvin Clement Mwinuka
c8cc156456 Created server and client sub-folders 2023-06-17 21:31:13 +08:00