mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-10 18:30:11 +08:00
Updated module name to echovault
This commit is contained in:
12
Dockerfile
12
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}" \
|
||||
|
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module github.com/kelvinmwinuka/memstore
|
||||
module github.com/echovault/echovault
|
||||
|
||||
go 1.21.4
|
||||
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package acl
|
||||
|
||||
import (
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"slices"
|
||||
"strings"
|
||||
)
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"net"
|
||||
"time"
|
||||
)
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"math/rand"
|
||||
"net"
|
||||
"slices"
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"math"
|
||||
"net"
|
||||
"slices"
|
||||
|
@@ -3,7 +3,7 @@ package ping
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
@@ -2,7 +2,7 @@ package ping
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"net"
|
||||
"reflect"
|
||||
"testing"
|
||||
|
@@ -3,7 +3,7 @@ package pubsub
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"net"
|
||||
)
|
||||
|
||||
|
@@ -5,7 +5,7 @@ import (
|
||||
"container/ring"
|
||||
"context"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"io"
|
||||
"net"
|
||||
"slices"
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"net"
|
||||
"slices"
|
||||
"strings"
|
||||
|
@@ -1,7 +1,7 @@
|
||||
package set
|
||||
|
||||
import (
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"math/rand"
|
||||
"slices"
|
||||
)
|
||||
|
@@ -5,7 +5,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"math"
|
||||
"net"
|
||||
"slices"
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"cmp"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"math"
|
||||
"math/rand"
|
||||
"slices"
|
||||
|
@@ -4,7 +4,7 @@ import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"net"
|
||||
"strings"
|
||||
)
|
||||
|
@@ -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 {
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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 {
|
||||
|
@@ -5,7 +5,7 @@ import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/kelvinmwinuka/memstore/src/utils"
|
||||
"github.com/echovault/echovault/src/utils"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
)
|
||||
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user