Documentation
¶
Index ¶
- type Handler
- type Protocol
- type Router
- func (r *Router) AddCmd(cmd uint32, client, server interface{}, comment string)
- func (r *Router) Call(gmt *agent.Meta, cmd uint32, req []byte) (rsp []byte, err error)
- func (r *Router) Cmd(cmd uint32) *Protocol
- func (r *Router) Handler(handles ...interface{})
- func (r *Router) NewClientProto(cmd uint32) proto.Message
- func (r *Router) NewServerProto(cmd uint32) proto.Message
- func (r *Router) ParseClientProto(cmd uint32, req []byte) (proto.Message, error)
- func (r *Router) Routes() map[uint32]*Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandlers ¶
func NewHandlers(handler interface{}) []*Handler
Click to show internal directories.
Click to hide internal directories.