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
eea8188c
Verified
Commit
eea8188c
authored
9 months ago
by
a
Browse files
Options
Downloads
Patches
Plain Diff
noot
parent
3d03ba2a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#102241
passed
9 months ago
Stage: test
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
contrib/codecs/http/codec_sse.go
+7
-2
7 additions, 2 deletions
contrib/codecs/http/codec_sse.go
go.mod
+7
-7
7 additions, 7 deletions
go.mod
go.sum
+14
-14
14 additions, 14 deletions
go.sum
with
28 additions
and
23 deletions
contrib/codecs/http/codec_sse.go
+
7
−
2
View file @
eea8188c
...
@@ -99,10 +99,15 @@ func (c *SseCodec) Write(p []byte) (n int, err error) {
...
@@ -99,10 +99,15 @@ func (c *SseCodec) Write(p []byte) (n int, err error) {
}
}
func
(
c
*
SseCodec
)
Flush
()
error
{
func
(
c
*
SseCodec
)
Flush
()
error
{
c
.
sink
.
Encode
(
&
sse
.
Event
{
bts
:=
c
.
cur
.
Bytes
()
err
:=
c
.
sink
.
Encode
(
&
sse
.
Event
{
Event
:
[]
byte
(
"object"
),
Event
:
[]
byte
(
"object"
),
Data
:
&
c
.
cur
,
Data
:
bts
,
})
})
c
.
cur
.
Reset
()
if
err
!=
nil
{
return
err
}
if
c
.
f
!=
nil
{
if
c
.
f
!=
nil
{
c
.
f
.
Flush
()
c
.
f
.
Flush
()
}
}
...
...
This diff is collapsed.
Click to expand it.
go.mod
+
7
−
7
View file @
eea8188c
...
@@ -4,17 +4,18 @@ go 1.21
...
@@ -4,17 +4,18 @@ go 1.21
require (
require (
gfx.cafe/open/websocket
v1.10.0
gfx.cafe/open/websocket
v1.10.0
github.com/gfx-labs/sse
v0.0.0-2024
0119011344-a9213f2a635b
github.com/gfx-labs/sse
v0.0.0-2024
1016074208-406bd1302230
github.com/go-faster/jx
v1.1.0
github.com/go-faster/jx
v1.1.0
github.com/json-iterator/go
v1.1.12
github.com/json-iterator/go
v1.1.12
github.com/mailgun/multibuf
v0.2.0
github.com/mailgun/multibuf
v0.2.0
github.com/stretchr/testify
v1.
9
.0
github.com/stretchr/testify
v1.
10
.0
github.com/valyala/bytebufferpool
v1.0.0
github.com/valyala/bytebufferpool
v1.0.0
golang.org/x/net
v0.
29
.0
golang.org/x/net
v0.
33
.0
golang.org/x/sync
v0.
8
.0
golang.org/x/sync
v0.
10
.0
)
)
require (
require (
github.com/cenkalti/backoff/v4
v4.3.0 // indirect
github.com/davecgh/go-spew
v1.1.1 // indirect
github.com/davecgh/go-spew
v1.1.1 // indirect
github.com/go-faster/errors
v0.7.1 // indirect
github.com/go-faster/errors
v0.7.1 // indirect
github.com/modern-go/concurrent
v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/concurrent
v0.0.0-20180306012644-bacd9c7ef1dd // indirect
...
@@ -22,8 +23,7 @@ require (
...
@@ -22,8 +23,7 @@ require (
github.com/pmezard/go-difflib
v1.0.0 // indirect
github.com/pmezard/go-difflib
v1.0.0 // indirect
github.com/segmentio/asm
v1.2.0 // indirect
github.com/segmentio/asm
v1.2.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.25.0 // indirect
golang.org/x/sys
v0.28.0 // indirect
golang.org/x/text
v0.18.0 // indirect
golang.org/x/text
v0.21.0 // indirect
gopkg.in/cenkalti/backoff.v1
v1.1.0 // indirect
gopkg.in/yaml.v3
v3.0.1 // indirect
gopkg.in/yaml.v3
v3.0.1 // indirect
)
)
This diff is collapsed.
Click to expand it.
go.sum
+
14
−
14
View file @
eea8188c
gfx.cafe/open/websocket
v1.10.0 h1:
ahVbietTKg9QhulBe4xcPw0F4mv/VOMEZPYFGhmGwaw=
gfx.cafe/open/websocket
v1.10.0 h1:
ahVbietTKg9QhulBe4xcPw0F4mv/VOMEZPYFGhmGwaw=
gfx.cafe/open/websocket
v1.10.0/go.mod h1:
GsEYIYJuzELmJjV0HBt8JOye0rvsBCCPEZt477uFb/E=
gfx.cafe/open/websocket
v1.10.0/go.mod h1:
GsEYIYJuzELmJjV0HBt8JOye0rvsBCCPEZt477uFb/E=
github.com/cenkalti/backoff/v4
v4.3.0 h1:
MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK343L8=
github.com/cenkalti/backoff/v4
v4.3.0/go.mod h1:
Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
github.com/davecgh/go-spew
v1.1.0/go.mod h1:
J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew
v1.1.0/go.mod h1:
J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew
v1.1.1 h1:
vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew
v1.1.1 h1:
vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew
v1.1.1/go.mod h1:
J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew
v1.1.1/go.mod h1:
J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gfx-labs/sse
v0.0.0-202401
19011344-a9213f2a635b h1:
wSyGjHQs6G8yTEwOH5Qb7P9AfiJ9F4oXjoCkl+m4q1E
=
github.com/gfx-labs/sse
v0.0.0-2024
1
01
6074208-406bd1302230 h1:
qUiwQC3+VKJ/1pexr1aU+asr2jYyDF43Iie1WD2Fdo0
=
github.com/gfx-labs/sse
v0.0.0-202401
19011344-a9213f2a635b/go.mod h1:
XHbvCcIgmDnHe5BtsFHYHtUDG+aXRnMbIoD4oMc6bHA
=
github.com/gfx-labs/sse
v0.0.0-2024
1
01
6074208-406bd1302230/go.mod h1:
hNwCGHfdXy/jXfeT9y1WFzjr9eLFM/azwBEorL5joCM
=
github.com/go-faster/errors
v0.7.1 h1:
MkJTnDoEdi9pDabt1dpWf7AA8/BaSYZqibYyhZ20AYg=
github.com/go-faster/errors
v0.7.1 h1:
MkJTnDoEdi9pDabt1dpWf7AA8/BaSYZqibYyhZ20AYg=
github.com/go-faster/errors
v0.7.1/go.mod h1:
5ySTjWFiphBs07IKuiL69nxdfd5+fzh1u7FPGZP2quo=
github.com/go-faster/errors
v0.7.1/go.mod h1:
5ySTjWFiphBs07IKuiL69nxdfd5+fzh1u7FPGZP2quo=
github.com/go-faster/jx
v1.1.0 h1:
ZsW3wD+snOdmTDy9eIVgQdjUpXRRV4rqW8NS3t+20bg=
github.com/go-faster/jx
v1.1.0 h1:
ZsW3wD+snOdmTDy9eIVgQdjUpXRRV4rqW8NS3t+20bg=
...
@@ -31,22 +33,20 @@ github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys=
...
@@ -31,22 +33,20 @@ 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=
github.com/stretchr/testify
v1.3.0/go.mod h1:
M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify
v1.3.0/go.mod h1:
M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify
v1.
9
.0 h1:
HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg
=
github.com/stretchr/testify
v1.
10
.0 h1:
Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA
=
github.com/stretchr/testify
v1.
9
.0/go.mod h1:
r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/stretchr/testify
v1.
10
.0/go.mod h1:
r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
github.com/valyala/bytebufferpool
v1.0.0 h1:
GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool
v1.0.0 h1:
GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool
v1.0.0/go.mod h1:
6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/bytebufferpool
v1.0.0/go.mod h1:
6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
golang.org/x/exp
v0.0.0-20230206171751-46f607a40771 h1:
xP7rWLUr1e1n2xkK5YB4LI0hPEy3LJC6Wk+D4pGlOJg=
golang.org/x/exp
v0.0.0-20230206171751-46f607a40771 h1:
xP7rWLUr1e1n2xkK5YB4LI0hPEy3LJC6Wk+D4pGlOJg=
golang.org/x/exp
v0.0.0-20230206171751-46f607a40771/go.mod h1:
CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/exp
v0.0.0-20230206171751-46f607a40771/go.mod h1:
CxIveKay+FTh1D0yPZemJVgC/95VzuuOLq5Qi4xnoYc=
golang.org/x/net
v0.29.0 h1:
5ORfpBpCs4HzDYoodCDBbwHzdR5UrLBZ3sOnUJmFoHo=
golang.org/x/net
v0.33.0 h1:
74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I=
golang.org/x/net
v0.29.0/go.mod h1:
gLkgy8jTGERgjzMic6DS9+SP0ajcu6Xu3Orq/SpETg0=
golang.org/x/net
v0.33.0/go.mod h1:
HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4=
golang.org/x/sync
v0.8.0 h1:
3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ=
golang.org/x/sync
v0.10.0 h1:
3NQrjDixjgGwUOCaF8w2+VYHv0Ve/vGYSbdkTa98gmQ=
golang.org/x/sync
v0.8.0/go.mod h1:
Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sync
v0.10.0/go.mod h1:
Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
golang.org/x/sys
v0.25.0 h1:
r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
golang.org/x/sys
v0.28.0 h1:
Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA=
golang.org/x/sys
v0.25.0/go.mod h1:
/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys
v0.28.0/go.mod h1:
/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text
v0.18.0 h1:
XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
golang.org/x/text
v0.21.0 h1:
zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo=
golang.org/x/text
v0.18.0/go.mod h1:
BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
golang.org/x/text
v0.21.0/go.mod h1:
4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ=
gopkg.in/cenkalti/backoff.v1
v1.1.0 h1:
Arh75ttbsvlpVA7WtVpH4u9h6Zl46xuptxqLxPiSo4Y=
gopkg.in/cenkalti/backoff.v1
v1.1.0/go.mod h1:
J6Vskwqd+OMVJl8C33mmtxTBs2gyzfv7UDAkHu8BrjI=
gopkg.in/check.v1
v0.0.0-20161208181325-20d25e280405/go.mod h1:
Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1
v0.0.0-20161208181325-20d25e280405/go.mod h1:
Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1
v1.0.0-20201130134442-10cb98267c6c h1:
Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1
v1.0.0-20201130134442-10cb98267c6c h1:
Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
gopkg.in/check.v1
v1.0.0-20201130134442-10cb98267c6c/go.mod h1:
JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
gopkg.in/check.v1
v1.0.0-20201130134442-10cb98267c6c/go.mod h1:
JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
...
...
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