Documentation ¶
Index ¶
- func Daemonize(nochdir, noclose int) int
- func GenerateId(n int) string
- func GetFloatValue(f *expvar.Float) float64
- func GetIntValue(i *expvar.Int) int64
- func MurmurHash(data []byte) uint32
- func WritePid(pidFile string)
- type Balancer
- type MessageContainer
- type MessageTable
- func (self *MessageTable) Clean()
- func (self *MessageTable) Get(id uint16) (codec.Message, error)
- func (self *MessageTable) NewId() uint16
- func (self *MessageTable) Register(id uint16, message codec.Message, opaque interface{})
- func (self *MessageTable) Register2(id uint16, message codec.Message, count int, opaque interface{})
- func (self *MessageTable) Remove(id uint16)
- func (self *MessageTable) SetOnFinish(callback func(uint16, codec.Message, interface{}))
- func (self *MessageTable) Unref(id uint16)
- type Qlobber
- type QlobberTrie
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateId ¶
func GetFloatValue ¶
func GetIntValue ¶
func MurmurHash ¶
Types ¶
type Balancer ¶
type MessageContainer ¶
type MessageTable ¶
type MessageTable struct { sync.RWMutex Id uint16 Hash map[uint16]*MessageContainer OnFinish func(uint16, codec.Message, interface{}) // contains filtered or unexported fields }
func NewMessageTable ¶
func NewMessageTable() *MessageTable
func (*MessageTable) Clean ¶
func (self *MessageTable) Clean()
func (*MessageTable) NewId ¶
func (self *MessageTable) NewId() uint16
func (*MessageTable) Register ¶
func (self *MessageTable) Register(id uint16, message codec.Message, opaque interface{})
func (*MessageTable) Register2 ¶
func (self *MessageTable) Register2(id uint16, message codec.Message, count int, opaque interface{})
func (*MessageTable) Remove ¶
func (self *MessageTable) Remove(id uint16)
func (*MessageTable) SetOnFinish ¶
func (self *MessageTable) SetOnFinish(callback func(uint16, codec.Message, interface{}))
func (*MessageTable) Unref ¶
func (self *MessageTable) Unref(id uint16)
type Qlobber ¶
type Qlobber struct { Separator string WildcardSome string WildcardOne string QlobberTrie *QlobberTrie Mutex *sync.RWMutex Cache map[string][]interface{} }
func NewQlobber ¶
func NewQlobber() *Qlobber
type QlobberTrie ¶
type QlobberTrie struct { Collections []interface{} Trie map[string]*QlobberTrie }
Click to show internal directories.
Click to hide internal directories.