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
d3f95505
Verified
Commit
d3f95505
authored
Nov 11, 2023
by
a
Browse files
Options
Downloads
Patches
Plain Diff
ok
parent
4cea9d87
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-1
1 addition, 1 deletion
.gitignore
contrib/extension/subscription/conn.go
+2
-2
2 additions, 2 deletions
contrib/extension/subscription/conn.go
pkg/jsonrpc/conn.go
+2
-6
2 additions, 6 deletions
pkg/jsonrpc/conn.go
with
5 additions
and
9 deletions
.gitignore
+
1
−
1
View file @
d3f95505
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
*.tmp
*.tmp
*.log
*.log
*.test
*.test
coverage.txt
coverage.txt
report.xml
report.xml
*.test.txt
This diff is collapsed.
Click to expand it.
contrib/extension/subscription/conn.go
+
2
−
2
View file @
d3f95505
...
@@ -9,14 +9,14 @@ import (
...
@@ -9,14 +9,14 @@ import (
type
Conn
interface
{
type
Conn
interface
{
Subscribe
(
ctx
context
.
Context
,
namespace
string
,
channel
any
,
args
any
)
(
ClientSubscription
,
error
)
Subscribe
(
ctx
context
.
Context
,
namespace
string
,
channel
any
,
args
any
)
(
ClientSubscription
,
error
)
jsonrpc
.
Streaming
Conn
jsonrpc
.
Conn
}
}
func
UpgradeConn
(
c
jsonrpc
.
Conn
,
err
error
)
(
Conn
,
error
)
{
func
UpgradeConn
(
c
jsonrpc
.
Conn
,
err
error
)
(
Conn
,
error
)
{
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
if
val
,
ok
:=
c
.
(
jsonrpc
.
Streaming
Conn
);
ok
{
if
val
,
ok
:=
c
.
(
jsonrpc
.
Conn
);
ok
{
engine
:=
NewWrapClient
(
val
)
engine
:=
NewWrapClient
(
val
)
val
.
Mount
(
engine
.
Middleware
)
val
.
Mount
(
engine
.
Middleware
)
return
engine
,
nil
return
engine
,
nil
...
...
This diff is collapsed.
Click to expand it.
pkg/jsonrpc/conn.go
+
2
−
6
View file @
d3f95505
...
@@ -7,6 +7,7 @@ import (
...
@@ -7,6 +7,7 @@ import (
type
Conn
interface
{
type
Conn
interface
{
Doer
Doer
Notifier
BatchCaller
BatchCaller
Mounter
Mounter
...
@@ -15,11 +16,6 @@ type Conn interface {
...
@@ -15,11 +16,6 @@ type Conn interface {
Closed
()
<-
chan
struct
{}
Closed
()
<-
chan
struct
{}
}
}
type
StreamingConn
interface
{
Conn
Notifier
}
type
Doer
interface
{
type
Doer
interface
{
Do
(
ctx
context
.
Context
,
result
any
,
method
string
,
params
any
)
error
Do
(
ctx
context
.
Context
,
result
any
,
method
string
,
params
any
)
error
}
}
...
@@ -33,5 +29,5 @@ type Notifier interface {
...
@@ -33,5 +29,5 @@ type Notifier interface {
}
}
type
Mounter
interface
{
type
Mounter
interface
{
Mount
(
Middleware
)
Mount
(
Handler
)
}
}
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