Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
命令管理者
func (*CommandHandler) Handle ¶
func (ch *CommandHandler) Handle(ctx *CmdContext) (interface{}, error)
处理命令
func (*CommandHandler) Register ¶
func (ch *CommandHandler) Register(cmdType string, cmd Command)
注册命令
type GetCommand ¶
type GetCommand struct {
}
Get 命令
func (*GetCommand) Do ¶
func (gc *GetCommand) Do(args interface{}) (interface{}, error)
type PostCommand ¶
type PostCommand struct {
}
post 命令
func (*PostCommand) Do ¶
func (pc *PostCommand) Do(args interface{}) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.