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
06480427
Commit
06480427
authored
Aug 08, 2018
by
AlexStocks
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mod: change logid type
parent
59b71288
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
README.md
README.md
+1
-1
codec.go
rpc/codec.go
+6
-7
No files found.
README.md
View file @
06480427
...
...
@@ -22,7 +22,7 @@ Feature list:
-
1 Transport: TCP(√), UDP(X), Websocket(X)
-
2 Codec: ProtoBuf(√), JSON(√)
-
3 S
OA
: Service Publish(X), Service Watch(X), Service Notify(X)
-
3 S
ervice Discovery
: Service Publish(X), Service Watch(X), Service Notify(X)
-
4 Registry: ZooKeeper(X), Etcd(X)
-
5 Strategy: Failover(√), Failfast(√)
-
6 Load Balance: Random(X), RoundRobin(X)
...
...
rpc/codec.go
View file @
06480427
...
...
@@ -19,7 +19,7 @@ import (
// getty command
////////////////////////////////////////////
type
gettyCommand
int
32
type
gettyCommand
int
16
const
(
gettyDefaultCmd
gettyCommand
=
0x00
...
...
@@ -195,19 +195,18 @@ type RPCPackage interface {
type
(
MagicType
int32
LogIDType
int
32
LogIDType
int
64
SequenceType
uint64
ServiceIDType
int
32
ServiceIDType
int
16
PkgLenType
int32
)
type
GettyPackageHeader
struct
{
Magic
MagicType
// magic number
LogID
LogIDType
// log id
Sequence
SequenceType
// request/response sequence
Magic
MagicType
// magic number
Command
gettyCommand
// operation command code
ServiceID
ServiceIDType
// service id
Sequence
SequenceType
// request/response sequence
LogID
LogIDType
// log id
Code
GettyErrorCode
// error code
CodecType
CodecType
...
...
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