You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 4, 2022. It is now read-only.
This library requires a fairly recent version of Go, at least 1.12. If you are modifying the protobuffer files you'll need the protoc compiler. The generated files are included in the source tree so you won't need it unless you use `make generate` (or `go generate ./...`).
6
-
7
-
Run `make` to build the demo service. The build uses a host of checkers (golint, go vet, staticcheck, revive and golangci-lint) so you might get some errors if you miss one or more of those.
8
-
9
-
Get them the usual way:
10
-
11
-
```text
12
-
go get -u golang.org/x/lint/golint
13
-
go get honnef.co/go/tools/cmd/staticcheck
14
-
go get -u github.com/mgechev/revive
15
-
# This only works for macOS, check out https://github.com/golangci/golangci-lint#install for other platforms
16
-
# go get works as well but the author doesn't recommend it.
17
-
brew install golangci/tap/golangci-lint
18
-
```
19
-
20
3
## What it is
21
4
22
5
This is a cluster library for Go. At its core it uses Raft and Serf to manage
@@ -30,20 +13,19 @@ A silver bullet.
30
13
31
14
clusterfunk requires Go version 1.12 or later.
32
15
33
-
## Setting up a cluster
34
-
35
-
## Managing the cluster
36
-
37
-
## Sharding
38
-
39
-
### Shard functions
16
+
## Building
40
17
41
-
### Shard weights
18
+
This library requires a fairly recent version of Go, at least 1.12. If you are modifying the protobuffer files you'll need the protoc compiler. The generated files are included in the source tree so you won't need it unless you use `make generate` (or `go generate ./...`).
42
19
43
-
## Limitations
20
+
Run `make` to build the demo service. The build uses a host of checkers (golint, go vet, staticcheck, revive and golangci-lint) so you might get some errors if you miss one or more of those.
44
21
45
-
## Replicated log
22
+
Get them the usual way:
46
23
47
-
The replicated log is kept quite simple. The first byte indicates the message type
48
-
and any log message type with an higher index overwrites the previous message in
49
-
the log.
24
+
```text
25
+
go get -u golang.org/x/lint/golint
26
+
go get honnef.co/go/tools/cmd/staticcheck
27
+
go get -u github.com/mgechev/revive
28
+
# This only works for macOS, check out https://github.com/golangci/golangci-lint#install for other platforms
29
+
# go get works as well but the author doesn't recommend it.
0 commit comments