Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
getty
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wei.xuan
getty
Commits
5b7d8d26
Unverified
Commit
5b7d8d26
authored
Jul 27, 2021
by
Xin.Zh
Committed by
GitHub
Jul 27, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69 from Mulavar/imports-fmt
style(*): format all imports with dubbogo/tools/imports-formatter
parents
168f412b
3ea0e197
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
17 deletions
+19
-17
main.go
benchmark/client/main.go
+4
-1
main.go
benchmark/loop_client/main.go
+4
-1
main.go
benchmark/server/main.go
+4
-1
connection.go
connection.go
+2
-0
client.go
demo/hello/tcp/client/client.go
+1
-1
config.go
demo/hello/tcp/config.go
+0
-3
server.go
demo/hello/tcp/server/server.go
+1
-1
config.go
demo/hello/tls/config.go
+0
-3
options.go
options.go
+3
-5
session.go
session.go
+0
-1
No files found.
benchmark/client/main.go
View file @
5b7d8d26
...
...
@@ -30,11 +30,14 @@ import (
)
import
(
getty
"github.com/apache/dubbo-getty"
"github.com/dubbogo/gost/sync"
"github.com/montanaflynn/stats"
)
import
(
getty
"github.com/apache/dubbo-getty"
)
var
(
concurrency
=
flag
.
Int
(
"c"
,
1
,
"concurrency"
)
total
=
flag
.
Int
(
"n"
,
1
,
"total requests for all clients"
)
...
...
benchmark/loop_client/main.go
View file @
5b7d8d26
...
...
@@ -28,10 +28,13 @@ import (
)
import
(
getty
"github.com/apache/dubbo-getty"
"github.com/dubbogo/gost/sync"
)
import
(
getty
"github.com/apache/dubbo-getty"
)
var
(
concurrency
=
flag
.
Int
(
"c"
,
1
,
"concurrency"
)
total
=
flag
.
Int
(
"n"
,
1
,
"total requests for all clients"
)
...
...
benchmark/server/main.go
View file @
5b7d8d26
...
...
@@ -33,10 +33,13 @@ import (
)
import
(
getty
"github.com/apache/dubbo-getty"
gxsync
"github.com/dubbogo/gost/sync"
)
import
(
getty
"github.com/apache/dubbo-getty"
)
var
(
taskPoolMode
=
flag
.
Bool
(
"taskPool"
,
false
,
"task pool mode"
)
taskPoolSize
=
flag
.
Int
(
"task_pool_size"
,
2000
,
"task poll size"
)
...
...
connection.go
View file @
5b7d8d26
...
...
@@ -25,7 +25,9 @@ import (
"net"
"sync"
"time"
)
import
(
"github.com/golang/snappy"
"github.com/gorilla/websocket"
perrors
"github.com/pkg/errors"
...
...
demo/hello/tcp/client/client.go
View file @
5b7d8d26
...
...
@@ -22,11 +22,11 @@ import (
)
import
(
"github.com/apache/dubbo-getty"
"github.com/dubbogo/gost/sync"
)
import
(
"github.com/apache/dubbo-getty"
"github.com/apache/dubbo-getty/demo/hello"
"github.com/apache/dubbo-getty/demo/hello/tcp"
"github.com/apache/dubbo-getty/demo/util"
...
...
demo/hello/tcp/config.go
View file @
5b7d8d26
...
...
@@ -25,9 +25,6 @@ import (
import
(
"github.com/apache/dubbo-getty"
)
import
(
"github.com/apache/dubbo-getty/demo/hello"
)
...
...
demo/hello/tcp/server/server.go
View file @
5b7d8d26
...
...
@@ -22,11 +22,11 @@ import (
)
import
(
"github.com/apache/dubbo-getty"
gxsync
"github.com/dubbogo/gost/sync"
)
import
(
"github.com/apache/dubbo-getty"
"github.com/apache/dubbo-getty/demo/hello/tcp"
"github.com/apache/dubbo-getty/demo/util"
)
...
...
demo/hello/tls/config.go
View file @
5b7d8d26
...
...
@@ -24,9 +24,6 @@ import (
import
(
"github.com/apache/dubbo-getty"
)
import
(
"github.com/apache/dubbo-getty/demo/hello"
)
...
...
options.go
View file @
5b7d8d26
...
...
@@ -17,11 +17,9 @@
package
getty
import
gxsync
"github.com/dubbogo/gost/sync"
/////////////////////////////////////////
// Server Options
/////////////////////////////////////////
import
(
gxsync
"github.com/dubbogo/gost/sync"
)
type
ServerOption
func
(
*
ServerOptions
)
...
...
session.go
View file @
5b7d8d26
...
...
@@ -32,7 +32,6 @@ import (
gxbytes
"github.com/dubbogo/gost/bytes"
gxcontext
"github.com/dubbogo/gost/context"
gxtime
"github.com/dubbogo/gost/time"
"github.com/gorilla/websocket"
perrors
"github.com/pkg/errors"
uatomic
"go.uber.org/atomic"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment