Commit 06480427 authored by AlexStocks's avatar AlexStocks

Mod: change logid type

parent 59b71288
......@@ -22,7 +22,7 @@ Feature list:
- 1 Transport: TCP(√), UDP(X), Websocket(X)
- 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)
- 5 Strategy: Failover(√), Failfast(√)
- 6 Load Balance: Random(X), RoundRobin(X)
......
......@@ -19,7 +19,7 @@ import (
// getty command
////////////////////////////////////////////
type gettyCommand int32
type gettyCommand int16
const (
gettyDefaultCmd gettyCommand = 0x00
......@@ -195,19 +195,18 @@ type RPCPackage interface {
type (
MagicType int32
LogIDType int32
LogIDType int64
SequenceType uint64
ServiceIDType int32
ServiceIDType int16
PkgLenType int32
)
type GettyPackageHeader struct {
Magic MagicType // magic number
LogID LogIDType // log id
Sequence SequenceType // request/response sequence
Command gettyCommand // operation command code
ServiceID ServiceIDType // service id
Sequence SequenceType // request/response sequence
LogID LogIDType // log id
Code GettyErrorCode // error code
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