Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomPacker ¶
type CustomPacker struct{}
CustomPacker treats packet as:
totalSize(4)|idSize(2)|id(n)|data(n)
| segment | type | size | remark | | ----------- | ------ | ------- | --------------------- | | `totalSize` | uint32 | 4 | the whole packet size | | `idSize` | uint16 | 2 | length of id | | `id` | string | dynamic | | | `data` | []byte | dynamic | |
type Json01Resp ¶
type Json01Resp struct { Success bool `json:"success"` Data interface{} `json:"data"` }
Click to show internal directories.
Click to hide internal directories.