good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jrpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
jrpc
Commits
a85bc6dd
Verified
Commit
a85bc6dd
authored
Aug 29, 2023
by
a
Browse files
Options
Downloads
Patches
Plain Diff
use the grow method i added :D
parent
8489dfe1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#25932
failed
Aug 29, 2023
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
go.mod
+15
-15
15 additions, 15 deletions
go.mod
go.sum
+29
-0
29 additions, 0 deletions
go.sum
pkg/server/server.go
+2
-6
2 additions, 6 deletions
pkg/server/server.go
with
46 additions
and
21 deletions
go.mod
+
15
−
15
View file @
a85bc6dd
...
@@ -4,27 +4,26 @@ go 1.18
...
@@ -4,27 +4,26 @@ go 1.18
require (
require (
gfx.cafe/open/websocket
v1.9.2
gfx.cafe/open/websocket
v1.9.2
gfx.cafe/util/go/bufpool
v0.0.0-20230
1
21
041905-80dafb1e973e
gfx.cafe/util/go/bufpool
v0.0.0-20230
7
21
185457-c559e86c829c
gfx.cafe/util/go/frand
v0.0.0-20230
1
21
041905-80dafb1e973e
gfx.cafe/util/go/frand
v0.0.0-20230
7
21
185457-c559e86c829c
gfx.cafe/util/go/generic
v0.0.0-20230
502013805-237fcc25d586
gfx.cafe/util/go/generic
v0.0.0-20230
721185457-c559e86c829c
github.com/alecthomas/kong
v0.
7.1
github.com/alecthomas/kong
v0.
8.0
github.com/alicebob/miniredis/v2
v2.30.
4
github.com/alicebob/miniredis/v2
v2.30.
5
github.com/davecgh/go-spew
v1.1.1
github.com/davecgh/go-spew
v1.1.1
github.com/deckarep/golang-set
v1.8.0
github.com/deckarep/golang-set
v1.8.0
github.com/go-faster/jx
v1.
0
.0
github.com/go-faster/jx
v1.
1
.0
github.com/goccy/go-json
v0.10.
0
github.com/goccy/go-json
v0.10.
2
github.com/iancoleman/strcase
v0.3.0
github.com/iancoleman/strcase
v0.3.0
github.com/nats-io/nats.go
v1.28.0
github.com/redis/go-redis/v9
v9.1.0
github.com/redis/go-redis/v9
v9.0.5
github.com/rs/xid
v1.5.0
github.com/rs/xid
v1.4.0
github.com/stretchr/testify
v1.8.4
github.com/stretchr/testify
v1.8.2
sigs.k8s.io/yaml
v1.3.0
sigs.k8s.io/yaml
v1.3.0
tuxpa.in/a/zlog
v1.61.0
tuxpa.in/a/zlog
v1.61.0
)
)
require (
require (
github.com/aead/chacha20
v0.0.0-20180709150244-8b13a72661da // indirect
github.com/aead/chacha20
v0.0.0-20180709150244-8b13a72661da // indirect
github.com/alicebob/gopher-json
v0.0.0-202
00520072559-a9ecdc9d1d3a
// indirect
github.com/alicebob/gopher-json
v0.0.0-202
30218143504-906a9b012302
// indirect
github.com/cespare/xxhash/v2
v2.2.0 // indirect
github.com/cespare/xxhash/v2
v2.2.0 // indirect
github.com/dgryski/go-rendezvous
v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/dgryski/go-rendezvous
v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/go-faster/errors
v0.6.1 // indirect
github.com/go-faster/errors
v0.6.1 // indirect
...
@@ -32,17 +31,18 @@ require (
...
@@ -32,17 +31,18 @@ require (
github.com/klauspost/compress
v1.16.7 // indirect
github.com/klauspost/compress
v1.16.7 // indirect
github.com/kr/pretty
v0.3.1 // indirect
github.com/kr/pretty
v0.3.1 // indirect
github.com/mattn/go-colorable
v0.1.13 // indirect
github.com/mattn/go-colorable
v0.1.13 // indirect
github.com/mattn/go-isatty
v0.0.1
8
// indirect
github.com/mattn/go-isatty
v0.0.1
9
// indirect
github.com/nats-io/nats-server/v2
v2.9.21 // indirect
github.com/nats-io/nats-server/v2
v2.9.21 // indirect
github.com/nats-io/nats.go
v1.28.0 // indirect
github.com/nats-io/nkeys
v0.4.4 // indirect
github.com/nats-io/nkeys
v0.4.4 // indirect
github.com/nats-io/nuid
v1.0.1 // indirect
github.com/nats-io/nuid
v1.0.1 // indirect
github.com/pmezard/go-difflib
v1.0.0 // indirect
github.com/pmezard/go-difflib
v1.0.0 // indirect
github.com/rs/zerolog
v1.
29
.0 // indirect
github.com/rs/zerolog
v1.
30
.0 // indirect
github.com/segmentio/asm
v1.2.0 // indirect
github.com/segmentio/asm
v1.2.0 // indirect
github.com/yuin/gopher-lua
v1.1.0 // indirect
github.com/yuin/gopher-lua
v1.1.0 // indirect
golang.org/x/crypto
v0.11.0 // indirect
golang.org/x/crypto
v0.11.0 // indirect
golang.org/x/exp
v0.0.0-20230206171751-46f607a40771 // indirect
golang.org/x/exp
v0.0.0-20230206171751-46f607a40771 // indirect
golang.org/x/sys
v0.1
0
.0 // indirect
golang.org/x/sys
v0.1
1
.0 // indirect
google.golang.org/protobuf
v1.31.0 // indirect
google.golang.org/protobuf
v1.31.0 // indirect
gopkg.in/check.v1
v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/check.v1
v1.0.0-20201130134442-10cb98267c6c // indirect
gopkg.in/yaml.v2
v2.4.0 // indirect
gopkg.in/yaml.v2
v2.4.0 // indirect
...
...
This diff is collapsed.
Click to expand it.
go.sum
+
29
−
0
View file @
a85bc6dd
...
@@ -2,21 +2,34 @@ gfx.cafe/open/websocket v1.9.2 h1:WePNf2xJ/TFfIXQAHWwVJ5Qa2PZNcf1WwrZAZkvrs9w=
...
@@ -2,21 +2,34 @@ gfx.cafe/open/websocket v1.9.2 h1:WePNf2xJ/TFfIXQAHWwVJ5Qa2PZNcf1WwrZAZkvrs9w=
gfx.cafe/open/websocket
v1.9.2/go.mod h1:
HVqrW2llBPBeRV6htwgKzTe/0jKyPofDG4GY8LSyKW4=
gfx.cafe/open/websocket
v1.9.2/go.mod h1:
HVqrW2llBPBeRV6htwgKzTe/0jKyPofDG4GY8LSyKW4=
gfx.cafe/util/go/bufpool
v0.0.0-20230121041905-80dafb1e973e h1:
cx35whzZb3wcLhmOUOiqz0N4f6o9ZWVnRe386rW9R5c=
gfx.cafe/util/go/bufpool
v0.0.0-20230121041905-80dafb1e973e h1:
cx35whzZb3wcLhmOUOiqz0N4f6o9ZWVnRe386rW9R5c=
gfx.cafe/util/go/bufpool
v0.0.0-20230121041905-80dafb1e973e/go.mod h1:
+DiyiCOBGS9O9Ce4ewHQO3Y59h66WSWAbgZZ2O2AYYw=
gfx.cafe/util/go/bufpool
v0.0.0-20230121041905-80dafb1e973e/go.mod h1:
+DiyiCOBGS9O9Ce4ewHQO3Y59h66WSWAbgZZ2O2AYYw=
gfx.cafe/util/go/bufpool
v0.0.0-20230721185457-c559e86c829c h1:
vhRmvfpB4dEg/IRXmB6rm8A66tvrm1HNkyIITaxQOdA=
gfx.cafe/util/go/bufpool
v0.0.0-20230721185457-c559e86c829c/go.mod h1:
+DiyiCOBGS9O9Ce4ewHQO3Y59h66WSWAbgZZ2O2AYYw=
gfx.cafe/util/go/frand
v0.0.0-20230121041905-80dafb1e973e h1:
A62zlsu3HkEAVRIb+cCpRIpSTmd047+ABV1KC2RsI2U=
gfx.cafe/util/go/frand
v0.0.0-20230121041905-80dafb1e973e h1:
A62zlsu3HkEAVRIb+cCpRIpSTmd047+ABV1KC2RsI2U=
gfx.cafe/util/go/frand
v0.0.0-20230121041905-80dafb1e973e/go.mod h1:
LNHxMJl0WnIr5+OChYxlVopxk+j7qxZv0XvWCzB6uGE=
gfx.cafe/util/go/frand
v0.0.0-20230121041905-80dafb1e973e/go.mod h1:
LNHxMJl0WnIr5+OChYxlVopxk+j7qxZv0XvWCzB6uGE=
gfx.cafe/util/go/frand
v0.0.0-20230721185457-c559e86c829c h1:
ZCCkzLPmcbw9tcON8DOx7YMZQIRzd/Z+5RH8bcvrNsA=
gfx.cafe/util/go/frand
v0.0.0-20230721185457-c559e86c829c/go.mod h1:
LNHxMJl0WnIr5+OChYxlVopxk+j7qxZv0XvWCzB6uGE=
gfx.cafe/util/go/generic
v0.0.0-20230502013805-237fcc25d586 h1:
dlvliDuuuI3E+HtVeZVQgKuGcf0fGNNNadt04fgTyX8=
gfx.cafe/util/go/generic
v0.0.0-20230502013805-237fcc25d586 h1:
dlvliDuuuI3E+HtVeZVQgKuGcf0fGNNNadt04fgTyX8=
gfx.cafe/util/go/generic
v0.0.0-20230502013805-237fcc25d586/go.mod h1:
WvSX4JsCRBuIXj0FRBFX9YLg+2SoL3w8Ww19uZO9yNE=
gfx.cafe/util/go/generic
v0.0.0-20230502013805-237fcc25d586/go.mod h1:
WvSX4JsCRBuIXj0FRBFX9YLg+2SoL3w8Ww19uZO9yNE=
gfx.cafe/util/go/generic
v0.0.0-20230721185457-c559e86c829c h1:
alCfDKmPC0EC0KGlZWrNF0hilVWBkzMz+aAYTJ/2hY4=
gfx.cafe/util/go/generic
v0.0.0-20230721185457-c559e86c829c/go.mod h1:
WvSX4JsCRBuIXj0FRBFX9YLg+2SoL3w8Ww19uZO9yNE=
github.com/aead/chacha20
v0.0.0-20180709150244-8b13a72661da h1:
KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY=
github.com/aead/chacha20
v0.0.0-20180709150244-8b13a72661da h1:
KjTM2ks9d14ZYCvmHS9iAKVt9AyzRSqNU1qabPih5BY=
github.com/aead/chacha20
v0.0.0-20180709150244-8b13a72661da/go.mod h1:
eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA=
github.com/aead/chacha20
v0.0.0-20180709150244-8b13a72661da/go.mod h1:
eHEWzANqSiWQsof+nXEI9bUVUyV6F53Fp89EuCh2EAA=
github.com/alecthomas/assert/v2
v2.1.0 h1:
tbredtNcQnoSd3QBhQWI7QZ3XHOVkw1Moklp2ojoH/0=
github.com/alecthomas/assert/v2
v2.1.0 h1:
tbredtNcQnoSd3QBhQWI7QZ3XHOVkw1Moklp2ojoH/0=
github.com/alecthomas/kong
v0.7.1 h1:
azoTh0IOfwlAX3qN9sHWTxACE2oV8Bg2gAwBsMwDQY4=
github.com/alecthomas/kong
v0.7.1 h1:
azoTh0IOfwlAX3qN9sHWTxACE2oV8Bg2gAwBsMwDQY4=
github.com/alecthomas/kong
v0.7.1/go.mod h1:
n1iCIO2xS46oE8ZfYCNDqdR0b0wZNrXAIAqro/2132U=
github.com/alecthomas/kong
v0.7.1/go.mod h1:
n1iCIO2xS46oE8ZfYCNDqdR0b0wZNrXAIAqro/2132U=
github.com/alecthomas/kong
v0.8.0 h1:
ryDCzutfIqJPnNn0omnrgHLbAggDQM2VWHikE1xqK7s=
github.com/alecthomas/kong
v0.8.0/go.mod h1:
n1iCIO2xS46oE8ZfYCNDqdR0b0wZNrXAIAqro/2132U=
github.com/alecthomas/repr
v0.1.0 h1:
ENn2e1+J3k09gyj2shc0dHr/yjaWSHRlrJ4DPMevDqE=
github.com/alecthomas/repr
v0.1.0 h1:
ENn2e1+J3k09gyj2shc0dHr/yjaWSHRlrJ4DPMevDqE=
github.com/alicebob/gopher-json
v0.0.0-20200520072559-a9ecdc9d1d3a h1:
HbKu58rmZpUGpz5+4FfNmIU+FmZg2P3Xaj2v2bfNWmk=
github.com/alicebob/gopher-json
v0.0.0-20200520072559-a9ecdc9d1d3a h1:
HbKu58rmZpUGpz5+4FfNmIU+FmZg2P3Xaj2v2bfNWmk=
github.com/alicebob/gopher-json
v0.0.0-20200520072559-a9ecdc9d1d3a/go.mod h1:
SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc=
github.com/alicebob/gopher-json
v0.0.0-20200520072559-a9ecdc9d1d3a/go.mod h1:
SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc=
github.com/alicebob/gopher-json
v0.0.0-20230218143504-906a9b012302 h1:
uvdUDbHQHO85qeSydJtItA4T55Pw6BtAejd0APRJOCE=
github.com/alicebob/gopher-json
v0.0.0-20230218143504-906a9b012302/go.mod h1:
SGnFV6hVsYE877CKEZ6tDNTjaSXYUk6QqoIK6PrAtcc=
github.com/alicebob/miniredis/v2
v2.30.4 h1:
8S4/o1/KoUArAGbGwPxcwf0krlzceva2XVOSchFS7Eo=
github.com/alicebob/miniredis/v2
v2.30.4 h1:
8S4/o1/KoUArAGbGwPxcwf0krlzceva2XVOSchFS7Eo=
github.com/alicebob/miniredis/v2
v2.30.4/go.mod h1:
b25qWj4fCEsBeAAR2mlb0ufImGC6uH3VlUfb/HS5zKg=
github.com/alicebob/miniredis/v2
v2.30.4/go.mod h1:
b25qWj4fCEsBeAAR2mlb0ufImGC6uH3VlUfb/HS5zKg=
github.com/alicebob/miniredis/v2
v2.30.5 h1:
3r6kTHdKnuP4fkS8k2IrvSfxpxUTcW1SOL0wN7b7Dt0=
github.com/alicebob/miniredis/v2
v2.30.5/go.mod h1:
b25qWj4fCEsBeAAR2mlb0ufImGC6uH3VlUfb/HS5zKg=
github.com/bsm/ginkgo/v2
v2.7.0 h1:
ItPMPH90RbmZJt5GtkcNvIRuGEdwlBItdNVoyzaNQao=
github.com/bsm/ginkgo/v2
v2.7.0 h1:
ItPMPH90RbmZJt5GtkcNvIRuGEdwlBItdNVoyzaNQao=
github.com/bsm/ginkgo/v2
v2.9.5 h1:
rtVBYPs3+TC5iLUVOis1B9tjLTup7Cj5IfzosKtvTJ0=
github.com/bsm/gomega
v1.26.0 h1:
LhQm+AFcgV2M0WyKroMASzAzCAJVpAxQXv4SaI9a69Y=
github.com/bsm/gomega
v1.26.0 h1:
LhQm+AFcgV2M0WyKroMASzAzCAJVpAxQXv4SaI9a69Y=
github.com/cespare/xxhash/v2
v2.2.0 h1:
DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
github.com/cespare/xxhash/v2
v2.2.0 h1:
DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
github.com/cespare/xxhash/v2
v2.2.0/go.mod h1:
VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cespare/xxhash/v2
v2.2.0/go.mod h1:
VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
...
@@ -37,8 +50,12 @@ github.com/go-faster/errors v0.6.1 h1:nNIPOBkprlKzkThvS/0YaX8Zs9KewLCOSFQS5BU06F
...
@@ -37,8 +50,12 @@ github.com/go-faster/errors v0.6.1 h1:nNIPOBkprlKzkThvS/0YaX8Zs9KewLCOSFQS5BU06F
github.com/go-faster/errors
v0.6.1/go.mod h1:
5MGV2/2T9yvlrbhe9pD9LO5Z/2zCSq2T8j+Jpi2LAyY=
github.com/go-faster/errors
v0.6.1/go.mod h1:
5MGV2/2T9yvlrbhe9pD9LO5Z/2zCSq2T8j+Jpi2LAyY=
github.com/go-faster/jx
v1.0.0 h1:
HE+ms2e6ZGkZ6u13t8u+onBinrPvIPI+0hWXGELm74g=
github.com/go-faster/jx
v1.0.0 h1:
HE+ms2e6ZGkZ6u13t8u+onBinrPvIPI+0hWXGELm74g=
github.com/go-faster/jx
v1.0.0/go.mod h1:
zm8SlkwK+H0TYNKYtVJ/7cWFS7soJBQWhcPctKyYL/4=
github.com/go-faster/jx
v1.0.0/go.mod h1:
zm8SlkwK+H0TYNKYtVJ/7cWFS7soJBQWhcPctKyYL/4=
github.com/go-faster/jx
v1.1.0 h1:
ZsW3wD+snOdmTDy9eIVgQdjUpXRRV4rqW8NS3t+20bg=
github.com/go-faster/jx
v1.1.0/go.mod h1:
vKDNikrKoyUmpzaJ0OkIkRQClNHFX/nF3dnTJZb3skg=
github.com/goccy/go-json
v0.10.0 h1:
mXKd9Qw4NuzShiRlOXKews24ufknHO7gx30lsDyokKA=
github.com/goccy/go-json
v0.10.0 h1:
mXKd9Qw4NuzShiRlOXKews24ufknHO7gx30lsDyokKA=
github.com/goccy/go-json
v0.10.0/go.mod h1:
6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/goccy/go-json
v0.10.0/go.mod h1:
6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/goccy/go-json
v0.10.2 h1:
CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
github.com/goccy/go-json
v0.10.2/go.mod h1:
6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/godbus/dbus/v5
v5.0.4/go.mod h1:
xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/godbus/dbus/v5
v5.0.4/go.mod h1:
xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/golang/protobuf
v1.5.0/go.mod h1:
FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf
v1.5.0/go.mod h1:
FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf
v1.5.3 h1:
KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
github.com/golang/protobuf
v1.5.3 h1:
KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
...
@@ -66,6 +83,8 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k
...
@@ -66,6 +83,8 @@ github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27k
github.com/mattn/go-isatty
v0.0.16/go.mod h1:
kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty
v0.0.16/go.mod h1:
kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty
v0.0.18 h1:
DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98=
github.com/mattn/go-isatty
v0.0.18 h1:
DOKFKCQ7FNG2L1rbrmstDN4QVRdS89Nkh85u68Uwp98=
github.com/mattn/go-isatty
v0.0.18/go.mod h1:
W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-isatty
v0.0.18/go.mod h1:
W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/mattn/go-isatty
v0.0.19 h1:
JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
github.com/mattn/go-isatty
v0.0.19/go.mod h1:
W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/minio/highwayhash
v1.0.2 h1:
Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g=
github.com/minio/highwayhash
v1.0.2 h1:
Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g=
github.com/nats-io/jwt/v2
v2.4.1 h1:
Y35W1dgbbz2SQUYDPCaclXcuqleVmpbRa7646Jf2EX4=
github.com/nats-io/jwt/v2
v2.4.1 h1:
Y35W1dgbbz2SQUYDPCaclXcuqleVmpbRa7646Jf2EX4=
github.com/nats-io/nats-server/v2
v2.9.21 h1:
2TBTh0UDE74eNXQmV4HofsmRSCiVN0TH2Wgrp6BD6fk=
github.com/nats-io/nats-server/v2
v2.9.21 h1:
2TBTh0UDE74eNXQmV4HofsmRSCiVN0TH2Wgrp6BD6fk=
...
@@ -82,13 +101,19 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
...
@@ -82,13 +101,19 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib
v1.0.0/go.mod h1:
iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/pmezard/go-difflib
v1.0.0/go.mod h1:
iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/redis/go-redis/v9
v9.0.5 h1:
CuQcn5HIEeK7BgElubPP8CGtE0KakrnbBSTLjathl5o=
github.com/redis/go-redis/v9
v9.0.5 h1:
CuQcn5HIEeK7BgElubPP8CGtE0KakrnbBSTLjathl5o=
github.com/redis/go-redis/v9
v9.0.5/go.mod h1:
WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
github.com/redis/go-redis/v9
v9.0.5/go.mod h1:
WqMKv5vnQbRuZstUwxQI195wHy+t4PuXDOjzMvcuQHk=
github.com/redis/go-redis/v9
v9.1.0 h1:
137FnGdk+EQdCbye1FW+qOEcY5S+SpY9T0NiuqvtfMY=
github.com/redis/go-redis/v9
v9.1.0/go.mod h1:
urWj3He21Dj5k4TK1y59xH8Uj6ATueP8AH1cY3lZl4c=
github.com/rogpeppe/go-internal
v1.9.0 h1:
73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal
v1.9.0 h1:
73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal
v1.9.0/go.mod h1:
WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rogpeppe/go-internal
v1.9.0/go.mod h1:
WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rs/xid
v1.4.0 h1:
qd7wPTDkN6KQx2VmMBLrpHkiyQwgFXRnkOLacUiaSNY=
github.com/rs/xid
v1.4.0 h1:
qd7wPTDkN6KQx2VmMBLrpHkiyQwgFXRnkOLacUiaSNY=
github.com/rs/xid
v1.4.0/go.mod h1:
trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/xid
v1.4.0/go.mod h1:
trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/xid
v1.5.0 h1:
mKX4bl4iPYJtEIxp6CYiUuLQ/8DYMoz0PUdtGgMFRVc=
github.com/rs/xid
v1.5.0/go.mod h1:
trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg=
github.com/rs/zerolog
v1.28.0/go.mod h1:
NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0=
github.com/rs/zerolog
v1.28.0/go.mod h1:
NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0=
github.com/rs/zerolog
v1.29.0 h1:
Zes4hju04hjbvkVkOhdl2HpZa+0PmVwigmo8XoORE5w=
github.com/rs/zerolog
v1.29.0 h1:
Zes4hju04hjbvkVkOhdl2HpZa+0PmVwigmo8XoORE5w=
github.com/rs/zerolog
v1.29.0/go.mod h1:
NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0=
github.com/rs/zerolog
v1.29.0/go.mod h1:
NILgTygv/Uej1ra5XxGf82ZFSLk58MFGAUS2o6usyD0=
github.com/rs/zerolog
v1.30.0 h1:
SymVODrcRsaRaSInD9yQtKbtWqwsfoPcRff/oRXLj4c=
github.com/rs/zerolog
v1.30.0/go.mod h1:
/tk+P47gFdPXq4QYjvCmT5/Gsug2nagsFWBWhAiSi1w=
github.com/segmentio/asm
v1.2.0 h1:
9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys=
github.com/segmentio/asm
v1.2.0 h1:
9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys=
github.com/segmentio/asm
v1.2.0/go.mod h1:
BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs=
github.com/segmentio/asm
v1.2.0/go.mod h1:
BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs=
github.com/stretchr/objx
v0.1.0/go.mod h1:
HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx
v0.1.0/go.mod h1:
HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
...
@@ -98,6 +123,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
...
@@ -98,6 +123,8 @@ github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify
v1.8.0/go.mod h1:
yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify
v1.8.0/go.mod h1:
yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify
v1.8.2 h1:
+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify
v1.8.2 h1:
+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify
v1.8.2/go.mod h1:
w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify
v1.8.2/go.mod h1:
w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify
v1.8.4 h1:
CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify
v1.8.4/go.mod h1:
sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/yuin/gopher-lua
v1.1.0 h1:
BojcDhfyDWgU2f2TOzYK/g5p2gxMrku8oupLDqlnSqE=
github.com/yuin/gopher-lua
v1.1.0 h1:
BojcDhfyDWgU2f2TOzYK/g5p2gxMrku8oupLDqlnSqE=
github.com/yuin/gopher-lua
v1.1.0/go.mod h1:
GBR0iDaNXjAgGg9zfCvksxSRnQx76gclCIb7kdAd1Pw=
github.com/yuin/gopher-lua
v1.1.0/go.mod h1:
GBR0iDaNXjAgGg9zfCvksxSRnQx76gclCIb7kdAd1Pw=
golang.org/x/crypto
v0.11.0 h1:
6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA=
golang.org/x/crypto
v0.11.0 h1:
6Ewdq3tDic1mg5xRO4milcWCfMVQhI4NkqWWvqejpuA=
...
@@ -112,6 +139,8 @@ golang.org/x/sys v0.0.0-20220915200043-7b5979e65e41/go.mod h1:oPkhp1MJrh7nUepCBc
...
@@ -112,6 +139,8 @@ golang.org/x/sys v0.0.0-20220915200043-7b5979e65e41/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys
v0.6.0/go.mod h1:
oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys
v0.6.0/go.mod h1:
oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys
v0.10.0 h1:
SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
golang.org/x/sys
v0.10.0 h1:
SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
golang.org/x/sys
v0.10.0/go.mod h1:
oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys
v0.10.0/go.mod h1:
oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys
v0.11.0 h1:
eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM=
golang.org/x/sys
v0.11.0/go.mod h1:
oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/time
v0.0.0-20191024005414-555d28b269f0/go.mod h1:
tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time
v0.0.0-20191024005414-555d28b269f0/go.mod h1:
tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time
v0.3.0 h1:
rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4=
golang.org/x/time
v0.3.0 h1:
rg5rLMjNzMS1RkNLzCG38eapWhnYLFYXDXj2gOlr8j4=
golang.org/x/xerrors
v0.0.0-20191204190536-9bdfabe68543/go.mod h1:
I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors
v0.0.0-20191204190536-9bdfabe68543/go.mod h1:
I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
...
...
This diff is collapsed.
Click to expand it.
pkg/server/server.go
+
2
−
6
View file @
a85bc6dd
...
@@ -218,9 +218,7 @@ type notifyEnv struct {
...
@@ -218,9 +218,7 @@ type notifyEnv struct {
func
(
c
*
callResponder
)
notify
(
ctx
context
.
Context
,
env
*
notifyEnv
)
error
{
func
(
c
*
callResponder
)
notify
(
ctx
context
.
Context
,
env
*
notifyEnv
)
error
{
enc
:=
jx
.
GetEncoder
()
enc
:=
jx
.
GetEncoder
()
if
cap
(
enc
.
Bytes
())
<
4096
{
enc
.
Grow
(
4096
)
enc
.
SetBytes
(
make
([]
byte
,
0
,
4096
))
}
enc
.
ResetWriter
(
c
.
remote
)
enc
.
ResetWriter
(
c
.
remote
)
defer
jx
.
PutEncoder
(
enc
)
defer
jx
.
PutEncoder
(
enc
)
//enc := jx.NewStreamingEncoder(c.remote, 4096)
//enc := jx.NewStreamingEncoder(c.remote, 4096)
...
@@ -266,9 +264,7 @@ func (c *callResponder) send(ctx context.Context, env *callEnv) (err error) {
...
@@ -266,9 +264,7 @@ func (c *callResponder) send(ctx context.Context, env *callEnv) (err error) {
}
}
// create the streaming encoder
// create the streaming encoder
enc
:=
jx
.
GetEncoder
()
enc
:=
jx
.
GetEncoder
()
if
cap
(
enc
.
Bytes
())
<
4096
{
enc
.
Grow
(
4096
)
enc
.
SetBytes
(
make
([]
byte
,
0
,
4096
))
}
enc
.
ResetWriter
(
c
.
remote
)
enc
.
ResetWriter
(
c
.
remote
)
defer
jx
.
PutEncoder
(
enc
)
defer
jx
.
PutEncoder
(
enc
)
if
env
.
batch
{
if
env
.
batch
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment