Commit 06480427 authored by AlexStocks's avatar AlexStocks

Mod: change logid type

parent 59b71288
...@@ -22,7 +22,7 @@ Feature list: ...@@ -22,7 +22,7 @@ Feature list:
- 1 Transport: TCP(√), UDP(X), Websocket(X) - 1 Transport: TCP(√), UDP(X), Websocket(X)
- 2 Codec: ProtoBuf(√), JSON(√) - 2 Codec: ProtoBuf(√), JSON(√)
- 3 SOA: Service Publish(X), Service Watch(X), Service Notify(X) - 3 Service Discovery: Service Publish(X), Service Watch(X), Service Notify(X)
- 4 Registry: ZooKeeper(X), Etcd(X) - 4 Registry: ZooKeeper(X), Etcd(X)
- 5 Strategy: Failover(√), Failfast(√) - 5 Strategy: Failover(√), Failfast(√)
- 6 Load Balance: Random(X), RoundRobin(X) - 6 Load Balance: Random(X), RoundRobin(X)
......
...@@ -19,7 +19,7 @@ import ( ...@@ -19,7 +19,7 @@ import (
// getty command // getty command
//////////////////////////////////////////// ////////////////////////////////////////////
type gettyCommand int32 type gettyCommand int16
const ( const (
gettyDefaultCmd gettyCommand = 0x00 gettyDefaultCmd gettyCommand = 0x00
...@@ -195,19 +195,18 @@ type RPCPackage interface { ...@@ -195,19 +195,18 @@ type RPCPackage interface {
type ( type (
MagicType int32 MagicType int32
LogIDType int32 LogIDType int64
SequenceType uint64 SequenceType uint64
ServiceIDType int32 ServiceIDType int16
PkgLenType int32 PkgLenType int32
) )
type GettyPackageHeader struct { type GettyPackageHeader struct {
Magic MagicType // magic number Magic MagicType // magic number
LogID LogIDType // log id
Sequence SequenceType // request/response sequence
Command gettyCommand // operation command code Command gettyCommand // operation command code
ServiceID ServiceIDType // service id ServiceID ServiceIDType // service id
Sequence SequenceType // request/response sequence
LogID LogIDType // log id
Code GettyErrorCode // error code Code GettyErrorCode // error code
CodecType CodecType CodecType CodecType
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment