Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrParseHeader = errors.New("解析Header失败") ErrParsePayload = errors.New("解析Payload失败") )
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { Ver string Server string Serial int Pool string PoolSerial int EventName string // 事件名称 Len int // Payload长度 }
Header Supervisord触发事件时会先发送Header,根据Header中len字段去读取Payload
func ParseHeader ¶
Click to show internal directories.
Click to hide internal directories.