Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PingCommand ¶
type PingCommand struct { }
PingCommand is a struct to handle ping command.
func (*PingCommand) Execute ¶
func (cmd *PingCommand) Execute(ctx contextx.Contextx, text string) ([]messaging_api.MessageInterface, error)
type TextCommander ¶
type TextCommander interface {
Execute(ctx contextx.Contextx, text string) ([]messaging_api.MessageInterface, error)
}
TextCommander is the interface for text command.
func NewCommands ¶
func NewCommands() []TextCommander
NewCommands is a function to create a new commands.
Click to show internal directories.
Click to hide internal directories.