Documentation ¶
Index ¶
- Constants
- func RegisterCommand(moduleId debug.ModuleId, queueNames []string) *cobra.Command
- type Manager
- func (m *Manager) NewQueue(name string, size int, options ...queue.Option) *Queue
- func (m *Manager) NewQueueUnmarshal(name string, size int, unmarshaller Unmarshaller, options ...queue.Option) *Queue
- func (m *Manager) NewQueues(name string, size, count, userCount int, options ...queue.Option) *MultiQueue
- func (m *Manager) NewQueuesUnmarshal(name string, size, count, userCount int, unmarshaller Unmarshaller, ...) *MultiQueue
- func (m *Manager) RecvCommand(conn *net.UDPConn, remote *net.UDPAddr, operate uint16, arg *bytes.Buffer)
- type Monitor
- type MonitorOperator
- type MultiQueue
- func (q *MultiQueue) Get(key queue.HashKey) interface{}
- func (q *MultiQueue) Gets(key queue.HashKey, output []interface{}) int
- func (q *MultiQueue) Init(name string, size, count, userCount int, unmarshaller Unmarshaller, ...)
- func (q *MultiQueue) Len(key queue.HashKey) int
- func (q *MultiQueue) Put(key queue.HashKey, items ...interface{}) error
- func (q *MultiQueue) Puts(keys []queue.HashKey, items []interface{}) error
- func (q *MultiQueue) Readers() []queue.QueueReader
- func (q *MultiQueue) Writers() []queue.QueueWriter
- type Queue
- type ReferenceCountable
- type Unmarshaller
Constants ¶
View Source
const ( QUEUE_CMD_SHOW = iota QUEUE_CMD_MONITOR_ON QUEUE_CMD_MONITOR_OFF QUEUE_CMD_CLEAR )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) NewQueueUnmarshal ¶
func (*Manager) NewQueuesUnmarshal ¶
func (m *Manager) NewQueuesUnmarshal(name string, size, count, userCount int, unmarshaller Unmarshaller, options ...queue.Option) *MultiQueue
type Monitor ¶
func (*Monitor) TurnOffDebug ¶
func (m *Monitor) TurnOffDebug()
type MonitorOperator ¶
type MultiQueue ¶
type MultiQueue struct { queue.FixedMultiQueue *Monitor // contains filtered or unexported fields }
func (*MultiQueue) Get ¶
func (q *MultiQueue) Get(key queue.HashKey) interface{}
func (*MultiQueue) Init ¶
func (q *MultiQueue) Init(name string, size, count, userCount int, unmarshaller Unmarshaller, options ...queue.Option)
func (*MultiQueue) Puts ¶
func (q *MultiQueue) Puts(keys []queue.HashKey, items []interface{}) error
The userId key must be placed in keys[0] (with item keys)
func (*MultiQueue) Readers ¶
func (q *MultiQueue) Readers() []queue.QueueReader
func (*MultiQueue) Writers ¶
func (q *MultiQueue) Writers() []queue.QueueWriter
type ReferenceCountable ¶
type ReferenceCountable interface { AddReferenceCount() SubReferenceCount() bool }
type Unmarshaller ¶
type Unmarshaller func(interface{}) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.