Commit Graph

16 Commits

Author SHA1 Message Date
Kelvin Clement Mwinuka
f3d36b3c3d Added Error to decoded types.
Removed cmd_functions.go as it is replaced by plugin system.
Consolidated get and set plugins into one plugin setget that handles GET, SET and MGET commands.
Plugins can declare multiple commands that they handle.
2023-07-03 12:35:37 +08:00
Kelvin Clement Mwinuka
58d6664faa Added plugins folder location in config for the server.
Created get and ser plugin files.
Created server function to load plugins.
Moved Makefile inside server folder to build and run server.
2023-07-03 08:39:19 +08:00
Kelvin Clement Mwinuka
04f0d92a95 Added encoding function for integers.
Added functionality for mget.
2023-07-02 07:23:50 +08:00
Kelvin Clement Mwinuka
b1fec4a0de Removed print statement in simple string encoding function 2023-07-01 22:42:53 +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
58cf302460 Created encoding functions for simple string and error. 2023-06-27 01:04:44 +08:00
Kelvin Clement Mwinuka
e0e865fd56 Return PONG response from server 2023-06-26 19:41:38 +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
84220cd82c Implemented TLS support 2023-06-22 02:26:49 +08:00
Kelvin Clement Mwinuka
6b6c4ba5e6 Changed port to 7480 as 6379 is already in use by Redis 2023-06-19 00:29:04 +08:00
Kelvin Clement Mwinuka
4eb7d75570 Implemented ability to specify JSON to YAML config file.
Added package to decode yaml config file.
Read config file and load values into server config.
2023-06-18 22:52:43 +08:00
Kelvin Clement Mwinuka
c843093d18 Validate flags for tls mode 2023-06-17 22:20:40 +08:00
Kelvin Clement Mwinuka
d787489fb5 Accept server flags to toggle TLS 2023-06-17 22:05:29 +08:00
Kelvin Clement Mwinuka
c8cc156456 Created server and client sub-folders 2023-06-17 21:31:13 +08:00