notifier

package
v0.0.0-...-6e94837 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrParse

type ErrParse struct {
	// contains filtered or unexported fields
}

func (*ErrParse) Error

func (err *ErrParse) Error() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL