Updated module name to echovault

This commit is contained in:
Kelvin Clement Mwinuka
2024-01-24 22:32:05 +08:00
parent bb2d44fe39
commit 1c00706f88
27 changed files with 50 additions and 50 deletions

View File

@@ -1,13 +1,13 @@
FROM --platform=linux/amd64 alpine:latest FROM --platform=linux/amd64 alpine:latest
RUN mkdir -p /usr/local/lib/memstore RUN mkdir -p /usr/local/lib/echovault
RUN mkdir -p /opt/memstore/bin RUN mkdir -p /opt/echovault/bin
RUN mkdir -p /etc/ssl/certs/memstore RUN mkdir -p /etc/ssl/certs/echovault
COPY ./bin/linux/x86_64/server /opt/memstore/bin COPY ./bin/linux/x86_64/server /opt/echovault/bin
COPY ./openssl/server /etc/ssl/certs/memstore COPY ./openssl/server /etc/ssl/certs/echovault
WORKDIR /opt/memstore/bin WORKDIR /opt/echovault/bin
CMD "./server" \ CMD "./server" \
"--bindAddr" "${BIND_ADDR}" \ "--bindAddr" "${BIND_ADDR}" \

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/kelvinmwinuka/memstore module github.com/echovault/echovault
go 1.21.4 go 1.21.4

View File

@@ -2,10 +2,10 @@ package main
import ( import (
"context" "context"
"github.com/kelvinmwinuka/memstore/src/modules/acl" "github.com/echovault/echovault/src/modules/acl"
"github.com/kelvinmwinuka/memstore/src/modules/pubsub" "github.com/echovault/echovault/src/modules/pubsub"
"github.com/kelvinmwinuka/memstore/src/server" "github.com/echovault/echovault/src/server"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"log" "log"
"os" "os"
"os/signal" "os/signal"

View File

@@ -4,9 +4,9 @@ import (
"context" "context"
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/echovault/echovault/src/utils"
"github.com/hashicorp/memberlist" "github.com/hashicorp/memberlist"
"github.com/hashicorp/raft" "github.com/hashicorp/raft"
"github.com/kelvinmwinuka/memstore/src/utils"
"time" "time"
) )

View File

@@ -7,9 +7,9 @@ import (
"log" "log"
"time" "time"
"github.com/echovault/echovault/src/utils"
"github.com/hashicorp/memberlist" "github.com/hashicorp/memberlist"
"github.com/hashicorp/raft" "github.com/hashicorp/raft"
"github.com/kelvinmwinuka/memstore/src/utils"
"github.com/sethvargo/go-retry" "github.com/sethvargo/go-retry"
) )

View File

@@ -6,8 +6,8 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/echovault/echovault/src/utils"
"github.com/gobwas/glob" "github.com/gobwas/glob"
"github.com/kelvinmwinuka/memstore/src/utils"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
"log" "log"
"net" "net"

View File

@@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
"net" "net"
"os" "os"

View File

@@ -1,7 +1,7 @@
package acl package acl
import ( import (
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"slices" "slices"
"strings" "strings"
) )

View File

@@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"net" "net"
"time" "time"
) )

View File

@@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"net" "net"
) )

View File

@@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"math/rand" "math/rand"
"net" "net"
"slices" "slices"

View File

@@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"math" "math"
"net" "net"
"slices" "slices"

View File

@@ -3,7 +3,7 @@ package ping
import ( import (
"context" "context"
"errors" "errors"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"net" "net"
) )

View File

@@ -2,7 +2,7 @@ package ping
import ( import (
"context" "context"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"net" "net"
"reflect" "reflect"
"testing" "testing"

View File

@@ -3,7 +3,7 @@ package pubsub
import ( import (
"context" "context"
"errors" "errors"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"net" "net"
) )

View File

@@ -5,7 +5,7 @@ import (
"container/ring" "container/ring"
"context" "context"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"io" "io"
"net" "net"
"slices" "slices"

View File

@@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"net" "net"
"slices" "slices"
"strings" "strings"

View File

@@ -1,7 +1,7 @@
package set package set
import ( import (
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"math/rand" "math/rand"
"slices" "slices"
) )

View File

@@ -5,7 +5,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"math" "math"
"net" "net"
"slices" "slices"

View File

@@ -4,7 +4,7 @@ import (
"cmp" "cmp"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"math" "math"
"math/rand" "math/rand"
"slices" "slices"

View File

@@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"net" "net"
"strings" "strings"
) )

View File

@@ -2,8 +2,8 @@ package raft
import ( import (
"encoding/json" "encoding/json"
"github.com/echovault/echovault/src/utils"
"github.com/hashicorp/raft" "github.com/hashicorp/raft"
"github.com/kelvinmwinuka/memstore/src/utils"
) )
type SnapshotOpts struct { type SnapshotOpts struct {

View File

@@ -3,8 +3,8 @@ package raft
import ( import (
"context" "context"
"encoding/json" "encoding/json"
"github.com/echovault/echovault/src/utils"
"github.com/hashicorp/raft" "github.com/hashicorp/raft"
"github.com/kelvinmwinuka/memstore/src/utils"
"io" "io"
) )

View File

@@ -4,7 +4,7 @@ import (
"context" "context"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/memberlist" "github.com/echovault/echovault/src/memberlist"
"log" "log"
"net" "net"
"os" "os"
@@ -12,9 +12,9 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/echovault/echovault/src/utils"
"github.com/hashicorp/raft" "github.com/hashicorp/raft"
raftboltdb "github.com/hashicorp/raft-boltdb" raftboltdb "github.com/hashicorp/raft-boltdb"
"github.com/kelvinmwinuka/memstore/src/utils"
) )
type RaftOpts struct { type RaftOpts struct {

View File

@@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"errors" "errors"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"time" "time"
) )

View File

@@ -3,17 +3,17 @@ package server
import ( import (
"context" "context"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/modules/acl" "github.com/echovault/echovault/src/modules/acl"
"github.com/kelvinmwinuka/memstore/src/modules/etc" "github.com/echovault/echovault/src/modules/etc"
"github.com/kelvinmwinuka/memstore/src/modules/get" "github.com/echovault/echovault/src/modules/get"
"github.com/kelvinmwinuka/memstore/src/modules/hash" "github.com/echovault/echovault/src/modules/hash"
"github.com/kelvinmwinuka/memstore/src/modules/list" "github.com/echovault/echovault/src/modules/list"
"github.com/kelvinmwinuka/memstore/src/modules/ping" "github.com/echovault/echovault/src/modules/ping"
"github.com/kelvinmwinuka/memstore/src/modules/pubsub" "github.com/echovault/echovault/src/modules/pubsub"
"github.com/kelvinmwinuka/memstore/src/modules/set" "github.com/echovault/echovault/src/modules/set"
"github.com/kelvinmwinuka/memstore/src/modules/sorted_set" "github.com/echovault/echovault/src/modules/sorted_set"
str "github.com/kelvinmwinuka/memstore/src/modules/string" str "github.com/echovault/echovault/src/modules/string"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"strings" "strings"
) )

View File

@@ -4,11 +4,11 @@ import (
"context" "context"
"crypto/tls" "crypto/tls"
"fmt" "fmt"
"github.com/kelvinmwinuka/memstore/src/memberlist" "github.com/echovault/echovault/src/memberlist"
"github.com/kelvinmwinuka/memstore/src/modules/acl" "github.com/echovault/echovault/src/modules/acl"
"github.com/kelvinmwinuka/memstore/src/modules/pubsub" "github.com/echovault/echovault/src/modules/pubsub"
"github.com/kelvinmwinuka/memstore/src/raft" "github.com/echovault/echovault/src/raft"
"github.com/kelvinmwinuka/memstore/src/utils" "github.com/echovault/echovault/src/utils"
"io" "io"
"log" "log"
"net" "net"