Documentation ¶
Index ¶
Constants ¶
View Source
const (
NoticeTypeInsertRemove int = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoticeBase ¶
type NoticeBase struct {
Type int `json:"typ"`
}
func (*NoticeBase) Unmarshal ¶
func (n *NoticeBase) Unmarshal(b []byte) error
type NoticeInsertRemove ¶
type NoticeInsertRemove struct { Pos QUEUEPOS `json:"pos"` Number int `json:"num"` Length int `json:"len"` }
Notify the number of elements insert to (remove from) the queue at the pos.
insert : number < 0 remove : number > 0
func (*NoticeInsertRemove) Marshal ¶
func (n *NoticeInsertRemove) Marshal() ([]byte, error)
func (*NoticeInsertRemove) Unmarshal ¶
func (n *NoticeInsertRemove) Unmarshal(b []byte) error
type PopElement ¶
type QUEUEPOS ¶
queue position
func (QUEUEPOS) MarshalJSON ¶
func (*QUEUEPOS) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.