Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct {
// contains filtered or unexported fields
}
Object Interface interface { SetEvent(event any) //接受任意类型的消息事件 SetEventsCap(cap int) //设置消息事件数量 Events() <-chan any //信道先进先出队列存储事件信号 HandleEvent() //处理消息事件 }
func (*Object) HandleEvent ¶
func (o *Object) HandleEvent()
func (*Object) SetEventsCap ¶
SetEventsCap func NewObject() *Object { return &Object{event: make(chan any, 1000)} } func New() Interface { return NewObject() }
Click to show internal directories.
Click to hide internal directories.