Documentation
¶
Index ¶
- Constants
- func GenId() uint64
- type Attribute
- func (d *Attribute) Closed()
- func (d *Attribute) GetId() uint64
- func (d *Attribute) GetIdPointer() *uint64
- func (d *Attribute) GetName() string
- func (d *Attribute) GetSize() int
- func (d *Attribute) GetStatus() int32
- func (d *Attribute) IsClosed() bool
- func (d *Attribute) IsRunning() bool
- func (d *Attribute) IsStarting() bool
- func (d *Attribute) IsWaiting() bool
- func (d *Attribute) OnDelete()
- func (d *Attribute) OnLock() error
- func (d *Attribute) OnUnlock() error
- func (d *Attribute) Running()
- func (d *Attribute) SetId(val uint64)
- func (d *Attribute) SetStatus(val int32)
- func (d *Attribute) Starting()
- func (d *Attribute) Waiting()
- type ITask
- type MsgQueue
- type MsgQueuePool
- type Option
- type Queue
Constants ¶
View Source
const ( STOPPED = 0 // 已停止 STARTING = 1 // 启动中 RUNNING = 2 // 运行中 WAITING = 3 // 等待关闭中 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Attribute ¶
type Attribute struct {
// contains filtered or unexported fields
}
func (*Attribute) GetIdPointer ¶
func (*Attribute) IsStarting ¶
type MsgQueue ¶
func NewMsgQueue ¶
type MsgQueuePool ¶
func NewMsgQueuePool ¶
func NewMsgQueuePool[T ITask](opts ...Option) *MsgQueuePool[T]
func (*MsgQueuePool[T]) Push ¶
func (d *MsgQueuePool[T]) Push(t T) (flag bool)
func (*MsgQueuePool[T]) Stop ¶
func (d *MsgQueuePool[T]) Stop()
func (*MsgQueuePool[T]) Wait ¶
func (d *MsgQueuePool[T]) Wait()
Click to show internal directories.
Click to hide internal directories.