Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JoinGroupReplyFunc ¶
type JoinGroupReplyFunc func(ctx context.Context) ([]linebot.SendingMessage, error)
type Reply ¶
type Reply interface {
WelcomeReply(ctx context.Context, userID string) ([]linebot.SendingMessage, error)
MessageTextReply(
ctx context.Context, typ linebot.EventSourceType,
groupId, userID, msg string, session sessions.Session,
) ([]linebot.SendingMessage, textreply.DelayedMessage, error)
JoinGroupReply(ctx context.Context) ([]linebot.SendingMessage, error)
}
func NewReply ¶
func NewReply( replyOptions ...ReplyOption, ) Reply
type ReplyOption ¶
type ReplyOption func(r *replyImpl)
func WithJoinGroupReply ¶
func WithJoinGroupReply(f JoinGroupReplyFunc) ReplyOption
func WithTextReply ¶
func WithTextReply(replies ...textreply.LineKeywordReply) ReplyOption
func WithTracer ¶
func WithTracer(tracer trace.Tracer) ReplyOption
Click to show internal directories.
Click to hide internal directories.