mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-11 02:40:06 +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
|
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
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/kelvinmwinuka/memstore
|
module github.com/echovault/echovault
|
||||||
|
|
||||||
go 1.21.4
|
go 1.21.4
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -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"
|
||||||
|
Reference in New Issue
Block a user