Skip to content

Commit

Permalink
refactor: make NewClient public
Browse files Browse the repository at this point in the history
  • Loading branch information
Tochemey committed Sep 16, 2024
1 parent b00aa13 commit 821f33c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ go get github.com/tochemey/gokv
### Features

- Go-KV uses the push-pull anti-entropy method to replicate nodes' state across the cluster. This approach makes Go-KV eventually consistent.
One can set the [`stateSyncInterval`](./cluster/config.go) value to low for frequent state synchronisation at a network cost.
- Discovery API to implement custom nodes discovery provider. See: [Discovery API](./discovery/provider.go)
One can set the [`stateSyncInterval`](./cluster/config.go) value to low for frequent state synchronisation at a network cost.
- Discovery API to implement custom nodes discovery provider. See: [discovery](./discovery/provider.go)
- Comes bundled with some discovery providers that can help you hit the ground running:
- [kubernetes](https://kubernetes.io/docs/home/) [api integration](./discovery/kubernetes) is fully functional
- [nats](https://nats.io/) [integration](./discovery/nats) is fully functional
Expand Down
2 changes: 2 additions & 0 deletions cluster/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ import (
)

// Client defines the cluster client
// This client can connect to any Go-KV cluster node and retrieve data from other
// of the cluster.
type Client struct {
// http client
httpClient *nethttp.Client
Expand Down

0 comments on commit 821f33c

Please sign in to comment.