Skip to content

Commit 517b8a3

Browse files
authored
Centrifugo v6 (#931)
1 parent 89abf7d commit 517b8a3

File tree

200 files changed

+9375
-10994
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

200 files changed

+9375
-10994
lines changed

.github/workflows/test.yml

-7
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ jobs:
2424
strategy:
2525
matrix:
2626
go-version: [1.23.4]
27-
tarantool-version: [2.7.2]
2827
steps:
2928
- name: Install Go
3029
uses: actions/setup-go@v5
@@ -37,11 +36,5 @@ jobs:
3736
- name: Start services
3837
run: docker compose up -d --wait
3938

40-
- name: Install rocks
41-
run: docker run --rm -v $(pwd)/misc/tnt:/opt/tarantool tarantool/tarantool:${{ matrix.tarantool-version }} tarantoolctl rocks install https://raw.githubusercontent.com/centrifugal/tarantool-centrifuge/main/centrifuge-scm-1.rockspec
42-
43-
- name: Start Tarantool
44-
run: docker run -d -p 3301:3301 -v $(pwd)/misc/tnt:/opt/tarantool tarantool/tarantool:${{ matrix.tarantool-version }} tarantool /opt/tarantool/init.lua
45-
4639
- name: Test
4740
run: make test-integration

.gitignore

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
.DS_Store
22
centrifugo
3-
config.yaml
4-
config.json
5-
config.json.*
6-
config.*.json
3+
/config.yaml
4+
/config.*.yaml
5+
/config.json
6+
/config.*.json
7+
/config.toml
8+
/config.*.toml
79
BUILDS
810
PACKAGES
911
FlameGraph
1012
torch.svg
1113
protoc-3*
14+
.env
15+
/*.env
1216
.venv
1317
.vscode
1418
.idea
@@ -18,6 +22,7 @@ misc/clickhouse_cluster/clickhouse*
1822
misc/clickhouse_cluster/zookeeper
1923
misc/redis_instances/redis_data
2024
misc/redis_cluster/cluster_data
25+
misc/redis_sentinel/sentinel_data
2126
misc/nats_cluster/nats_logs
2227
vendor/
2328
*.orig

.goreleaser.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ builds:
5151
- goos: freebsd
5252
goarch: arm64
5353
main: .
54-
ldflags: -s -w -X github.com/centrifugal/centrifugo/v5/internal/build.Version={{.Version}} -X github.com/centrifugal/centrifugo/v5/internal/build.UsageStatsEndpoint={{ .Env.STATS_ENDPOINT }} -X github.com/centrifugal/centrifugo/v5/internal/build.UsageStatsToken={{ .Env.STATS_TOKEN }}
54+
ldflags: -s -w -X github.com/centrifugal/centrifugo/internal/build.Version={{.Version}} -X github.com/centrifugal/centrifugo/internal/build.UsageStatsEndpoint={{ .Env.STATS_ENDPOINT }} -X github.com/centrifugal/centrifugo/internal/build.UsageStatsToken={{ .Env.STATS_TOKEN }}
5555
binary: centrifugo
5656
env:
5757
# https://github.com/goreleaser/goreleaser/issues/225

go.mod

+24-23
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
module github.com/centrifugal/centrifugo/v5
1+
module github.com/centrifugal/centrifugo
22

33
go 1.23.0
44

55
require (
66
github.com/FZambia/eagle v0.1.0
77
github.com/FZambia/statik v0.1.2-0.20180217151304-b9f012bb2a1b
8-
github.com/FZambia/tarantool v0.3.1
9-
github.com/FZambia/viper-lite v0.0.0-20220110144934-1899f66c7d0e
10-
github.com/centrifugal/centrifuge v0.33.5-0.20241221140549-8f88728a2744
11-
github.com/centrifugal/protocol v0.13.4
8+
github.com/centrifugal/centrifuge v0.33.7-0.20250115221636-66e8709d50e4
9+
github.com/centrifugal/protocol v0.14.0
1210
github.com/cristalhq/jwt/v5 v5.4.0
11+
github.com/go-viper/mapstructure/v2 v2.2.1
1312
github.com/gobwas/glob v0.2.3
1413
github.com/google/uuid v1.6.0
1514
github.com/gorilla/securecookie v1.1.2
1615
github.com/gorilla/websocket v1.5.0
1716
github.com/hashicorp/go-envparse v0.1.0
1817
github.com/jackc/pgx/v5 v5.7.2
18+
github.com/joho/godotenv v1.5.1
1919
github.com/justinas/alice v1.2.0
2020
github.com/mattn/go-isatty v0.0.20
21-
github.com/mitchellh/mapstructure v1.5.0
2221
github.com/nats-io/nats.go v1.38.0
22+
github.com/pelletier/go-toml/v2 v2.2.3
2323
github.com/prometheus/client_golang v1.20.5
2424
github.com/quic-go/quic-go v0.48.2
2525
github.com/quic-go/webtransport-go v0.8.1-0.20241018022711-4ac2c9250e66
2626
github.com/rakutentech/jwk-go v1.1.3
2727
github.com/rs/zerolog v1.33.0
2828
github.com/spf13/cobra v1.8.1
29+
github.com/spf13/viper v1.20.0-alpha.6.0.20240903103719-273543ce8237
2930
github.com/stretchr/testify v1.10.0
3031
github.com/tidwall/gjson v1.18.0
3132
github.com/tidwall/sjson v1.2.5
3233
github.com/twmb/franz-go v1.18.0
3334
github.com/twmb/franz-go/pkg/kadm v1.14.0
3435
github.com/twmb/franz-go/pkg/kmsg v1.9.0
3536
github.com/valyala/fasttemplate v1.2.2
36-
github.com/vmihailenco/msgpack/v5 v5.4.1
3737
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.58.0
3838
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.58.0
3939
go.opentelemetry.io/otel v1.33.0
4040
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.33.0
4141
go.opentelemetry.io/otel/sdk v1.33.0
4242
go.opentelemetry.io/otel/trace v1.33.0
4343
go.uber.org/automaxprocs v1.6.0
44-
golang.org/x/crypto v0.31.0
44+
golang.org/x/crypto v0.32.0
4545
golang.org/x/sync v0.10.0
46-
golang.org/x/time v0.8.0
47-
google.golang.org/grpc v1.69.2
46+
golang.org/x/time v0.9.0
47+
google.golang.org/grpc v1.69.4
4848
google.golang.org/protobuf v1.36.1
4949
)
5050

@@ -58,26 +58,31 @@ require (
5858
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
5959
github.com/pierrec/lz4/v4 v4.1.21 // indirect
6060
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
61+
github.com/sagikazarmark/locafero v0.6.0 // indirect
6162
github.com/shadowspore/fossil-delta v0.0.0-20241003175239-d3b7ce6bda62 // indirect
63+
github.com/sourcegraph/conc v0.3.0 // indirect
64+
github.com/spf13/afero v1.11.0 // indirect
65+
github.com/subosito/gotenv v1.6.0 // indirect
6266
github.com/tidwall/match v1.1.1 // indirect
6367
github.com/tidwall/pretty v1.2.0 // indirect
6468
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
69+
go.uber.org/atomic v1.9.0 // indirect
6570
go.uber.org/mock v0.4.0 // indirect
71+
go.uber.org/multierr v1.9.0 // indirect
6672
)
6773

6874
require (
6975
github.com/beorn7/perks v1.0.1 // indirect
7076
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
7177
github.com/cespare/xxhash/v2 v2.3.0 // indirect
72-
github.com/davecgh/go-spew v1.1.1 // indirect
78+
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
7379
github.com/felixge/httpsnoop v1.0.4 // indirect
74-
github.com/fsnotify/fsnotify v1.5.4 // indirect
80+
github.com/fsnotify/fsnotify v1.7.0 // indirect
7581
github.com/go-logr/logr v1.4.2 // indirect
7682
github.com/go-logr/stdr v1.2.2 // indirect
7783
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
7884
github.com/google/pprof v0.0.0-20230926050212-f7f687d19a98 // indirect
7985
github.com/grpc-ecosystem/grpc-gateway/v2 v2.24.0 // indirect
80-
github.com/igm/sockjs-go/v3 v3.0.3
8186
github.com/inconshreveable/mousetrap v1.1.0 // indirect
8287
github.com/josharian/intern v1.0.0 // indirect
8388
github.com/klauspost/compress v1.17.11 // indirect
@@ -87,32 +92,28 @@ require (
8792
github.com/nats-io/nuid v1.0.1 // indirect
8893
github.com/onsi/ginkgo v1.16.5 // indirect
8994
github.com/onsi/ginkgo/v2 v2.12.1 // indirect
90-
github.com/pelletier/go-toml v1.9.4 // indirect
91-
github.com/pmezard/go-difflib v1.0.0 // indirect
95+
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
9296
github.com/prometheus/client_model v0.6.1 // indirect
9397
github.com/prometheus/common v0.60.0 // indirect
9498
github.com/prometheus/procfs v0.15.1 // indirect
9599
github.com/quic-go/qpack v0.5.1 // indirect
96-
github.com/redis/rueidis v1.0.51 // indirect
100+
github.com/redis/rueidis v1.0.53 // indirect
97101
github.com/segmentio/asm v1.2.0 // indirect
98102
github.com/segmentio/encoding v0.4.1 // indirect
99-
github.com/spf13/cast v1.4.1 // indirect
100-
github.com/spf13/jwalterweatherman v1.1.0 // indirect
103+
github.com/spf13/cast v1.7.0 // indirect
101104
github.com/spf13/pflag v1.0.5 // indirect
102105
github.com/valyala/bytebufferpool v1.0.0 // indirect
103-
github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect
104106
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.33.0
105107
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.33.0
106108
go.opentelemetry.io/otel/metric v1.33.0 // indirect
107109
go.opentelemetry.io/proto/otlp v1.4.0 // indirect
108110
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
109111
golang.org/x/mod v0.19.0 // indirect
110-
golang.org/x/net v0.32.0 // indirect
111-
golang.org/x/sys v0.28.0 // indirect
112+
golang.org/x/net v0.33.0 // indirect
113+
golang.org/x/sys v0.29.0 // indirect
112114
golang.org/x/text v0.21.0 // indirect
113115
golang.org/x/tools v0.23.0 // indirect
114116
google.golang.org/genproto/googleapis/api v0.0.0-20241209162323-e6fa225c2576 // indirect
115117
google.golang.org/genproto/googleapis/rpc v0.0.0-20241209162323-e6fa225c2576 // indirect
116-
gopkg.in/yaml.v2 v2.4.0 // indirect
117-
gopkg.in/yaml.v3 v3.0.1 // indirect
118+
gopkg.in/yaml.v3 v3.0.1
118119
)

0 commit comments

Comments
 (0)