etcd implemented

This commit is contained in:
Erkan Ozsoy
2023-07-03 12:45:37 +03:00
parent 1f1e7edd2a
commit 4190ba4790
9 changed files with 426 additions and 0 deletions

20
etcd/etcd_test.go Normal file
View File

@@ -0,0 +1,20 @@
package etcd
import (
"github.com/gofiber/utils"
"testing"
)
func Test_Etcd_Set(t *testing.T) {
testStore := New(Config{
Endpoints: []string{"localhost:2379"},
})
var (
key = "john"
val = []byte("doe")
)
err := testStore.Set(key, val, 0)
utils.AssertEqual(t, nil, err)
}