diff --git a/Dockerfile b/Dockerfile index 606f661..48cd2a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ FROM --platform=linux/amd64 alpine:latest -RUN mkdir -p /usr/local/lib/memstore -RUN mkdir -p /opt/memstore/bin -RUN mkdir -p /etc/ssl/certs/memstore +RUN mkdir -p /usr/local/lib/echovault +RUN mkdir -p /opt/echovault/bin +RUN mkdir -p /etc/ssl/certs/echovault -COPY ./bin/linux/x86_64/server /opt/memstore/bin -COPY ./openssl/server /etc/ssl/certs/memstore +COPY ./bin/linux/x86_64/server /opt/echovault/bin +COPY ./openssl/server /etc/ssl/certs/echovault -WORKDIR /opt/memstore/bin +WORKDIR /opt/echovault/bin CMD "./server" \ "--bindAddr" "${BIND_ADDR}" \ diff --git a/go.mod b/go.mod index 1abe989..8019d6f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/kelvinmwinuka/memstore +module github.com/echovault/echovault go 1.21.4 diff --git a/src/main.go b/src/main.go index 0a626a3..f49a605 100644 --- a/src/main.go +++ b/src/main.go @@ -2,10 +2,10 @@ package main import ( "context" - "github.com/kelvinmwinuka/memstore/src/modules/acl" - "github.com/kelvinmwinuka/memstore/src/modules/pubsub" - "github.com/kelvinmwinuka/memstore/src/server" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/modules/acl" + "github.com/echovault/echovault/src/modules/pubsub" + "github.com/echovault/echovault/src/server" + "github.com/echovault/echovault/src/utils" "log" "os" "os/signal" diff --git a/src/memberlist/delegate.go b/src/memberlist/delegate.go index 3e19a2a..01314cd 100644 --- a/src/memberlist/delegate.go +++ b/src/memberlist/delegate.go @@ -4,9 +4,9 @@ import ( "context" "encoding/json" "fmt" + "github.com/echovault/echovault/src/utils" "github.com/hashicorp/memberlist" "github.com/hashicorp/raft" - "github.com/kelvinmwinuka/memstore/src/utils" "time" ) diff --git a/src/memberlist/memberlist.go b/src/memberlist/memberlist.go index 0397995..ab62005 100644 --- a/src/memberlist/memberlist.go +++ b/src/memberlist/memberlist.go @@ -7,9 +7,9 @@ import ( "log" "time" + "github.com/echovault/echovault/src/utils" "github.com/hashicorp/memberlist" "github.com/hashicorp/raft" - "github.com/kelvinmwinuka/memstore/src/utils" "github.com/sethvargo/go-retry" ) diff --git a/src/modules/acl/acl.go b/src/modules/acl/acl.go index f092eeb..685c497 100644 --- a/src/modules/acl/acl.go +++ b/src/modules/acl/acl.go @@ -6,8 +6,8 @@ import ( "encoding/json" "errors" "fmt" + "github.com/echovault/echovault/src/utils" "github.com/gobwas/glob" - "github.com/kelvinmwinuka/memstore/src/utils" "gopkg.in/yaml.v3" "log" "net" diff --git a/src/modules/acl/commands.go b/src/modules/acl/commands.go index 1170020..adfbcf1 100644 --- a/src/modules/acl/commands.go +++ b/src/modules/acl/commands.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "gopkg.in/yaml.v3" "net" "os" diff --git a/src/modules/acl/user.go b/src/modules/acl/user.go index 7dcbcbc..1d7dcdd 100644 --- a/src/modules/acl/user.go +++ b/src/modules/acl/user.go @@ -1,7 +1,7 @@ package acl import ( - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "slices" "strings" ) diff --git a/src/modules/etc/commands.go b/src/modules/etc/commands.go index 491a6d4..2b85a86 100644 --- a/src/modules/etc/commands.go +++ b/src/modules/etc/commands.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "net" "time" ) diff --git a/src/modules/get/commands.go b/src/modules/get/commands.go index 03ca10b..53f0555 100644 --- a/src/modules/get/commands.go +++ b/src/modules/get/commands.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "net" ) diff --git a/src/modules/hash/commands.go b/src/modules/hash/commands.go index 0279730..20b6675 100644 --- a/src/modules/hash/commands.go +++ b/src/modules/hash/commands.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "math/rand" "net" "slices" diff --git a/src/modules/list/commands.go b/src/modules/list/commands.go index 51e6a2b..9425ade 100644 --- a/src/modules/list/commands.go +++ b/src/modules/list/commands.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "math" "net" "slices" diff --git a/src/modules/ping/commands.go b/src/modules/ping/commands.go index 6ad4234..61f1859 100644 --- a/src/modules/ping/commands.go +++ b/src/modules/ping/commands.go @@ -3,7 +3,7 @@ package ping import ( "context" "errors" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "net" ) diff --git a/src/modules/ping/commands_test.go b/src/modules/ping/commands_test.go index 830bf4b..e4af508 100644 --- a/src/modules/ping/commands_test.go +++ b/src/modules/ping/commands_test.go @@ -2,7 +2,7 @@ package ping import ( "context" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "net" "reflect" "testing" diff --git a/src/modules/pubsub/commands.go b/src/modules/pubsub/commands.go index c3d9860..3a17691 100644 --- a/src/modules/pubsub/commands.go +++ b/src/modules/pubsub/commands.go @@ -3,7 +3,7 @@ package pubsub import ( "context" "errors" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "net" ) diff --git a/src/modules/pubsub/pubsub.go b/src/modules/pubsub/pubsub.go index 84ea377..82fed04 100644 --- a/src/modules/pubsub/pubsub.go +++ b/src/modules/pubsub/pubsub.go @@ -5,7 +5,7 @@ import ( "container/ring" "context" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "io" "net" "slices" diff --git a/src/modules/set/commands.go b/src/modules/set/commands.go index dd22335..7309cc7 100644 --- a/src/modules/set/commands.go +++ b/src/modules/set/commands.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "net" "slices" "strings" diff --git a/src/modules/set/set.go b/src/modules/set/set.go index 7214deb..35f977a 100644 --- a/src/modules/set/set.go +++ b/src/modules/set/set.go @@ -1,7 +1,7 @@ package set import ( - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "math/rand" "slices" ) diff --git a/src/modules/sorted_set/commands.go b/src/modules/sorted_set/commands.go index d82b900..53c27f1 100644 --- a/src/modules/sorted_set/commands.go +++ b/src/modules/sorted_set/commands.go @@ -5,7 +5,7 @@ import ( "context" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "math" "net" "slices" diff --git a/src/modules/sorted_set/sorted_set.go b/src/modules/sorted_set/sorted_set.go index 537db20..0369493 100644 --- a/src/modules/sorted_set/sorted_set.go +++ b/src/modules/sorted_set/sorted_set.go @@ -4,7 +4,7 @@ import ( "cmp" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "math" "math/rand" "slices" diff --git a/src/modules/string/commands.go b/src/modules/string/commands.go index ba927da..ca48707 100644 --- a/src/modules/string/commands.go +++ b/src/modules/string/commands.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "net" "strings" ) diff --git a/src/raft/fms_snapshot.go b/src/raft/fms_snapshot.go index 873488d..084408d 100644 --- a/src/raft/fms_snapshot.go +++ b/src/raft/fms_snapshot.go @@ -2,8 +2,8 @@ package raft import ( "encoding/json" + "github.com/echovault/echovault/src/utils" "github.com/hashicorp/raft" - "github.com/kelvinmwinuka/memstore/src/utils" ) type SnapshotOpts struct { diff --git a/src/raft/fsm.go b/src/raft/fsm.go index ced62e7..d90d0d2 100644 --- a/src/raft/fsm.go +++ b/src/raft/fsm.go @@ -3,8 +3,8 @@ package raft import ( "context" "encoding/json" + "github.com/echovault/echovault/src/utils" "github.com/hashicorp/raft" - "github.com/kelvinmwinuka/memstore/src/utils" "io" ) diff --git a/src/raft/raft.go b/src/raft/raft.go index a9e7733..876976e 100644 --- a/src/raft/raft.go +++ b/src/raft/raft.go @@ -4,7 +4,7 @@ import ( "context" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/memberlist" + "github.com/echovault/echovault/src/memberlist" "log" "net" "os" @@ -12,9 +12,9 @@ import ( "path/filepath" "time" + "github.com/echovault/echovault/src/utils" "github.com/hashicorp/raft" raftboltdb "github.com/hashicorp/raft-boltdb" - "github.com/kelvinmwinuka/memstore/src/utils" ) type RaftOpts struct { diff --git a/src/server/cluster.go b/src/server/cluster.go index 40ab0cd..4e2e5ad 100644 --- a/src/server/cluster.go +++ b/src/server/cluster.go @@ -5,7 +5,7 @@ import ( "encoding/json" "errors" "fmt" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/utils" "time" ) diff --git a/src/server/modules.go b/src/server/modules.go index 68672af..d58628a 100644 --- a/src/server/modules.go +++ b/src/server/modules.go @@ -3,17 +3,17 @@ package server import ( "context" "fmt" - "github.com/kelvinmwinuka/memstore/src/modules/acl" - "github.com/kelvinmwinuka/memstore/src/modules/etc" - "github.com/kelvinmwinuka/memstore/src/modules/get" - "github.com/kelvinmwinuka/memstore/src/modules/hash" - "github.com/kelvinmwinuka/memstore/src/modules/list" - "github.com/kelvinmwinuka/memstore/src/modules/ping" - "github.com/kelvinmwinuka/memstore/src/modules/pubsub" - "github.com/kelvinmwinuka/memstore/src/modules/set" - "github.com/kelvinmwinuka/memstore/src/modules/sorted_set" - str "github.com/kelvinmwinuka/memstore/src/modules/string" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/modules/acl" + "github.com/echovault/echovault/src/modules/etc" + "github.com/echovault/echovault/src/modules/get" + "github.com/echovault/echovault/src/modules/hash" + "github.com/echovault/echovault/src/modules/list" + "github.com/echovault/echovault/src/modules/ping" + "github.com/echovault/echovault/src/modules/pubsub" + "github.com/echovault/echovault/src/modules/set" + "github.com/echovault/echovault/src/modules/sorted_set" + str "github.com/echovault/echovault/src/modules/string" + "github.com/echovault/echovault/src/utils" "strings" ) diff --git a/src/server/server.go b/src/server/server.go index 85949b8..ae41a50 100644 --- a/src/server/server.go +++ b/src/server/server.go @@ -4,11 +4,11 @@ import ( "context" "crypto/tls" "fmt" - "github.com/kelvinmwinuka/memstore/src/memberlist" - "github.com/kelvinmwinuka/memstore/src/modules/acl" - "github.com/kelvinmwinuka/memstore/src/modules/pubsub" - "github.com/kelvinmwinuka/memstore/src/raft" - "github.com/kelvinmwinuka/memstore/src/utils" + "github.com/echovault/echovault/src/memberlist" + "github.com/echovault/echovault/src/modules/acl" + "github.com/echovault/echovault/src/modules/pubsub" + "github.com/echovault/echovault/src/raft" + "github.com/echovault/echovault/src/utils" "io" "log" "net"