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
fc4127d5
Commit
fc4127d5
authored
Aug 18, 2020
by
AlexStocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mod: format codes
parent
43ab2e8e
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
25 additions
and
23 deletions
+25
-23
README.md
demo/hello/README.md
+1
-1
consts.go
demo/hello/consts.go
+1
-1
hello.go
demo/hello/hello.go
+1
-1
messagelistener.go
demo/hello/messagelistener.go
+1
-1
pkghandler.go
demo/hello/pkghandler.go
+1
-1
client.go
demo/hello/tcp/client/client.go
+4
-4
config.go
demo/hello/tcp/config.go
+2
-2
server.go
demo/hello/tcp/server/server.go
+3
-3
client.go
demo/hello/tls/client/client.go
+4
-4
config.go
demo/hello/tls/config.go
+2
-2
server.go
demo/hello/tls/server/server.go
+3
-3
go.mod
go.mod
+2
-0
No files found.
demo/hello/README.md
View file @
fc4127d5
...
...
@@ -3,7 +3,7 @@
## 1. prepare
```
bash
git clone https://github.com/
dubbogo/
getty.git
git clone https://github.com/
apache/dubbo-
getty.git
cd
getty/demo/hello
```
...
...
demo/hello/consts.go
View file @
fc4127d5
...
...
@@ -18,7 +18,7 @@
package
hello
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
)
const
(
...
...
demo/hello/hello.go
View file @
fc4127d5
...
...
@@ -18,7 +18,7 @@
package
hello
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
)
var
(
...
...
demo/hello/messagelistener.go
View file @
fc4127d5
...
...
@@ -22,7 +22,7 @@ import (
)
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
)
type
MessageHandler
struct
{
...
...
demo/hello/pkghandler.go
View file @
fc4127d5
...
...
@@ -23,7 +23,7 @@ import (
)
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
)
type
PackageHandler
struct
{}
...
...
demo/hello/tcp/client/client.go
View file @
fc4127d5
...
...
@@ -22,14 +22,14 @@ import (
)
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
"github.com/dubbogo/gost/sync"
)
import
(
"github.com/
dubbogo/
getty/demo/hello"
"github.com/
dubbogo/
getty/demo/hello/tcp"
"github.com/
dubbogo/
getty/demo/util"
"github.com/
apache/dubbo-
getty/demo/hello"
"github.com/
apache/dubbo-
getty/demo/hello/tcp"
"github.com/
apache/dubbo-
getty/demo/util"
)
var
(
...
...
demo/hello/tcp/config.go
View file @
fc4127d5
...
...
@@ -24,11 +24,11 @@ import (
)
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
)
import
(
"github.com/
dubbogo/
getty/demo/hello"
"github.com/
apache/dubbo-
getty/demo/hello"
)
var
(
...
...
demo/hello/tcp/server/server.go
View file @
fc4127d5
...
...
@@ -22,13 +22,13 @@ import (
)
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
gxsync
"github.com/dubbogo/gost/sync"
)
import
(
"github.com/
dubbogo/
getty/demo/hello/tcp"
"github.com/
dubbogo/
getty/demo/util"
"github.com/
apache/dubbo-
getty/demo/hello/tcp"
"github.com/
apache/dubbo-
getty/demo/util"
)
var
(
...
...
demo/hello/tls/client/client.go
View file @
fc4127d5
...
...
@@ -23,14 +23,14 @@ import (
)
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
"github.com/dubbogo/gost/sync"
)
import
(
"github.com/
dubbogo/
getty/demo/hello"
tls
"github.com/
dubbogo/
getty/demo/hello/tls"
"github.com/
dubbogo/
getty/demo/util"
"github.com/
apache/dubbo-
getty/demo/hello"
tls
"github.com/
apache/dubbo-
getty/demo/hello/tls"
"github.com/
apache/dubbo-
getty/demo/util"
)
var
(
...
...
demo/hello/tls/config.go
View file @
fc4127d5
...
...
@@ -23,11 +23,11 @@ import (
)
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
)
import
(
"github.com/
dubbogo/
getty/demo/hello"
"github.com/
apache/dubbo-
getty/demo/hello"
)
var
(
...
...
demo/hello/tls/server/server.go
View file @
fc4127d5
...
...
@@ -19,17 +19,17 @@ package main
import
(
"flag"
tls
"github.com/
dubbogo/
getty/demo/hello/tls"
tls
"github.com/
apache/dubbo-
getty/demo/hello/tls"
"path/filepath"
)
import
(
"github.com/
dubbogo/
getty"
"github.com/
apache/dubbo-
getty"
gxsync
"github.com/dubbogo/gost/sync"
)
import
(
"github.com/
dubbogo/
getty/demo/util"
"github.com/
apache/dubbo-
getty/demo/util"
)
var
(
...
...
go.mod
View file @
fc4127d5
module github.com/apache/dubbo-getty
go 1.14
require (
github.com/dubbogo/gost v1.9.0
github.com/golang/snappy v0.0.1
...
...
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