Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
func CreateHandler ¶
func CreateHandler(s *state.State) *CommandHandler
func (*CommandHandler) AddFunc ¶
func (h *CommandHandler) AddFunc(name string, fn cmdroute.CommandHandlerFunc)
func (*CommandHandler) AddHandler ¶
func (h *CommandHandler) AddHandler(fn interface{})
func (*CommandHandler) AddSyncHandler ¶
func (h *CommandHandler) AddSyncHandler(fn interface{})
func (*CommandHandler) GetState ¶
func (h *CommandHandler) GetState() *state.State
type IHandler ¶
type IHandler interface { AddFunc(name string, fn cmdroute.CommandHandlerFunc) GetState() *state.State }
func GetHandler ¶
func GetHandler() IHandler
Click to show internal directories.
Click to hide internal directories.