Documentation
¶
Index ¶
- type Item
- type Q
- func (t *Q) ProcessPrimary() (Item, error)
- func (t *Q) ProcessPrimarySync(fn func(i Item))
- func (t *Q) ProcessSecondary() (Item, error)
- func (t *Q) ProcessSecondarySync(fn func(i Item))
- func (t *Q) Subscribe(fn func(Item)) (ubsub func())
- func (t *Q) Switch()
- func (t *Q) WritePrimary(m Item)
- func (t *Q) WriteSecondary(m Item)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Q ¶
type Q struct {
PC func(int)
SC func(int)
PCap int
SCap int
OnSwitch func()
// contains filtered or unexported fields
}
func (*Q) ProcessPrimary ¶
func (*Q) ProcessPrimarySync ¶
func (*Q) ProcessSecondary ¶
func (*Q) ProcessSecondarySync ¶
func (*Q) WritePrimary ¶
func (*Q) WriteSecondary ¶
Click to show internal directories.
Click to hide internal directories.