Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodePacket ¶
func EncodePacket(w io.Writer, bbp *SendPacket) error
func JsonEncodePacket ¶
func JsonEncodePacket(w io.Writer, bbp *SendPacket) error
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
func NewDecoder ¶
func (*Decoder) DecodePacket ¶
func (d *Decoder) DecodePacket(bbp *SendPacket) error
type SendPacket ¶
type SendPacket struct {
Datetime int64 `json:"time"` // unix time
ConnectionID uint32 `json:"id,omitempty"`
User string `json:"user,omitempty"`
Db string `json:"db,omitempty"`
Addr string `json:"addr,omitempty"`
State string `json:"state,omitempty"` // 5
Err string `json:"err,omitempty"` // 6
Packets []byte `json:"packets,omitempty"` // 7
Cmd string `json:"cmd,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.