mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 17:13:51 +00:00
17 lines
430 B
Go
17 lines
430 B
Go
package interact
|
|
|
|
// Responder defines the logic of responding the message
|
|
type Responder func(session Session, message string, reply Reply, ctxObjects ...interface{}) error
|
|
|
|
type CallbackResponder interface {
|
|
SetCallbackResponder(responder Responder)
|
|
}
|
|
|
|
type TextMessageResponder interface {
|
|
SetTextMessageResponder(responder Responder)
|
|
}
|
|
|
|
type CommandResponder interface {
|
|
AddCommand(command *Command, responder Responder)
|
|
}
|