Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineBotClient ¶
type LineBotClient interface { ParseRequest(*http.Request) ([]*linebot.Event, error) ReplyMessage(string, ...linebot.SendingMessage) LineBotPushMessageCall }
LineBotClient mimics line-bot-sdk-go Client
type LineBotPushMessageCall ¶
type LineBotPushMessageCall interface {
Do() (*linebot.BasicResponse, error)
}
LineBotPushMessageCall mimics line-bot-sdk-go ReplyMessageCall
type LineCommand ¶
type LineCommand interface {
Process() ([]linebot.SendingMessage, error)
}
LineCommand is interface for line command
type LineCommandBuilder ¶
type LineCommandBuilder func([]string) LineCommand
LineCommandBuilder is builder function to generate command processor
type LineCommandMapper ¶
type LineCommandMapper interface {
GetCommandBuilder(string) LineCommandBuilder
}
LineCommandMapper is mapper that returns LineCommandBuilder
type LineContext ¶
LineContext is base context that has Event type properties
type LineService ¶
type LineService interface {
HandleIncomingMessage(*LineTextMessageContext) error
}
LineService is our line service interface that defines function that needs to be implemented
type LineTextMessageContext ¶
type LineTextMessageContext struct { *LineContext Message *linebot.TextMessage }
LineTextMessageContext embedded Context and add TextMessage type properties
Click to show internal directories.
Click to hide internal directories.