bbgo_origin/pkg/interact/responder.go

13 lines
349 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 TextMessageResponder interface {
SetTextMessageResponder(responder Responder)
}
type CommandResponder interface {
AddCommand(command *Command, responder Responder)
}