Documentation ¶
Index ¶
Constants ¶
View Source
const ( E_EXT_NOT_SUPPORT = "E_EXT_NOT_SUPPORT" E_BAD_TAG = "E_BAD_TAG" E_INVALID_JSON_HEADER = "E_INVALID_JSON_HEADER" CLIENT_DISPATCH_TAG_KEY = "##client_dispatch_tag" TRACE_ID_KEY = "##trace_id" MaxExtLen = 65535 ZAN_TEST_KEY = "zan_test" )
Variables ¶
View Source
var JSON_HEADER_EXT_VER = ExtVer(uint8(4))
version for message has json header ext
View Source
var MAX_TAG_LEN = 100
View Source
var NO_EXT_VER = ExtVer(uint8(0))
ext versions version for message has no ext
View Source
var TAG_EXT_VER = ExtVer(uint8(2))
version for message has tag ext
Functions ¶
func ValidateTag ¶
Types ¶
type IExtContent ¶
type JsonHeaderExt ¶
type JsonHeaderExt struct {
// contains filtered or unexported fields
}
func NewJsonHeaderExt ¶
func NewJsonHeaderExt() *JsonHeaderExt
func (*JsonHeaderExt) ExtVersion ¶
func (self *JsonHeaderExt) ExtVersion() ExtVer
func (*JsonHeaderExt) GetBytes ¶
func (self *JsonHeaderExt) GetBytes() []byte
func (*JsonHeaderExt) SetJsonHeaderBytes ¶
func (self *JsonHeaderExt) SetJsonHeaderBytes(jsonExtBytes []byte)
Click to show internal directories.
Click to hide internal directories.