Documentation ¶
Index ¶
- func AddDefaultService(name string, s Service)
- type Break
- type CNode
- type Channel
- type Done
- type Handler
- type MNode
- func (N *MNode) AddChidren(id int64, n Node) int64
- func (N *MNode) AddParent(id int64, n Node)
- func (N *MNode) Match(name string) bool
- func (N *MNode) Name() string
- func (N *MNode) NewId() int64
- func (N *MNode) RemoveChidren(id int64)
- func (N *MNode) RemoveParent(id int64)
- func (N *MNode) Send(message *kk.Message, sender Sender) error
- type Node
- type NodeSet
- type RService
- type RespHandler
- type RespService
- type SNode
- type Sender
- type Service
- type TCPCNode
- func (N *TCPCNode) Addr() string
- func (N *TCPCNode) Atime() time.Duration
- func (N *TCPCNode) Close() error
- func (N *TCPCNode) Handle(message *kk.Message, sender Sender) error
- func (N *TCPCNode) Match(name string) bool
- func (N *TCPCNode) Name() string
- func (N *TCPCNode) Ping() time.Duration
- func (N *TCPCNode) Priority() int
- func (N *TCPCNode) Send(message *kk.Message) error
- type TCPChannel
- type TCPMNode
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDefaultService ¶
Types ¶
type MNode ¶
type MNode struct { SNode // contains filtered or unexported fields }
func (*MNode) RemoveChidren ¶
func (*MNode) RemoveParent ¶
type NodeSet ¶
type NodeSet struct {
// contains filtered or unexported fields
}
func (*NodeSet) RemoveNode ¶
type RService ¶
type RService struct {
// contains filtered or unexported fields
}
func NewRService ¶
func NewRService() *RService
type RespHandler ¶
type RespHandler struct {
// contains filtered or unexported fields
}
type RespService ¶
type RespService struct {
// contains filtered or unexported fields
}
func NewRespService ¶
func NewRespService() *RespService
func (*RespService) AddHandler ¶
type SNode ¶
type SNode struct {
// contains filtered or unexported fields
}
func (*SNode) AddService ¶
type Service ¶
type Service interface { Match(message *kk.Message) bool Handle(message *kk.Message, sender Sender) error }
func GetDefaultService ¶
type TCPCNode ¶
type TCPCNode struct { SNode // contains filtered or unexported fields }
func NewTCPCNode ¶
type TCPChannel ¶
type TCPChannel struct {
// contains filtered or unexported fields
}
func NewTCPChannel ¶
func NewTCPChannel(conn net.Conn) *TCPChannel
func (*TCPChannel) Addr ¶
func (C *TCPChannel) Addr() string
func (*TCPChannel) Close ¶
func (C *TCPChannel) Close() error
func (*TCPChannel) Grow ¶
func (C *TCPChannel) Grow(size int)
Click to show internal directories.
Click to hide internal directories.