Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
提交文件
Browse files Browse the repository at this point in the history
  • Loading branch information
zgwit committed Aug 8, 2024
1 parent 0336fd6 commit fe00bed
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions rpc/pack.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package rpc


const (
DISCONNECT uint8 = iota
CONNECT
CONNECT_ACK
HEARTBEAT
REQUEST
REQUEST_END
RESPONSE
RESPONSE_END
STREAM
STREAM_END
PUBLISH
PUBLISH_END
PUBLISH_ACK
SUBSCRIBE
SUBSCRIBE_ACK
UNSUBSCRIBE
)

const (
BINARY uint8 = iota
JSON
XML
YAML
CSV
MSGPACK
PROTOBUF
)


type Pack struct {
Type uint8
Encoding uint8
Id uint16
Length uint16
}

0 comments on commit fe00bed

Please sign in to comment.