Documentation ¶
Index ¶
- func CreateFrom(msg *p.Message, cmd int32) *p.Message
- func CreateMsgId() string
- type CMDHandler
- type Server
- func (self *Server) AddToBatch(token int64, id string, msg *p.Message) error
- func (self *Server) BeginBatch() int64
- func (self *Server) CommitBatch(token int64)
- func (self *Server) DeleteBatch(token int64)
- func (self *Server) GetSyncProtocol() p.SyncProtocol
- func (self *Server) RawWriteTo(id string, msg *p.Message) error
- func (self *Server) Registry(cmd int32, handler CMDHandler)
- func (self *Server) Serve() error
- func (self *Server) WriteTo(id string, msg *p.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMsgId ¶
func CreateMsgId() string
Types ¶
type CMDHandler ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddToBatch ¶
func (*Server) BeginBatch ¶
func (*Server) CommitBatch ¶
func (*Server) DeleteBatch ¶
func (*Server) GetSyncProtocol ¶
func (self *Server) GetSyncProtocol() p.SyncProtocol
func (*Server) Registry ¶
func (self *Server) Registry(cmd int32, handler CMDHandler)
Click to show internal directories.
Click to hide internal directories.