Documentation ¶
Index ¶
- type ErrParse
- type EventAction
- type LineClient
- func (client *LineClient) BroadcastMessage(texts []string) *linebot.BroadcastMessageCall
- func (client *LineClient) HandleEvent(events []*linebot.Event, ea *EventAction)
- func (client *LineClient) ParseRequest(w http.ResponseWriter, r *http.Request) ([]*linebot.Event, error)
- func (client *LineClient) PushMessage(targetId string, msg string) *linebot.PushMessageCall
- func (client *LineClient) ReplyMessage(replyToken string, msg string) *linebot.ReplyMessageCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventAction ¶
type EventAction struct { Follow func(client *LineClient, userID string) Unfollow func(client *LineClient, userID string) Message func(client *LineClient, replyToken string) }
type LineClient ¶
type LineClient struct {
// contains filtered or unexported fields
}
func New ¶
func New() (*LineClient, error)
func (*LineClient) BroadcastMessage ¶
func (client *LineClient) BroadcastMessage(texts []string) *linebot.BroadcastMessageCall
func (*LineClient) HandleEvent ¶
func (client *LineClient) HandleEvent(events []*linebot.Event, ea *EventAction)
func (*LineClient) ParseRequest ¶
func (client *LineClient) ParseRequest(w http.ResponseWriter, r *http.Request) ([]*linebot.Event, error)
func (*LineClient) PushMessage ¶
func (client *LineClient) PushMessage(targetId string, msg string) *linebot.PushMessageCall
func (*LineClient) ReplyMessage ¶
func (client *LineClient) ReplyMessage(replyToken string, msg string) *linebot.ReplyMessageCall
Click to show internal directories.
Click to hide internal directories.