Documentation ¶
Index ¶
- Variables
- type Image
- type LINEBot
- type MessageProviderSet
- func (s *MessageProviderSet) Image(originalURL, previewURL string) repository.MessageProvider
- func (s *MessageProviderSet) ReminderChoices(text string, labels []string, types []model.ExecutorType) repository.MessageProvider
- func (s *MessageProviderSet) ReminderDeleteConfirmation(text, data string) repository.MessageProvider
- func (s *MessageProviderSet) ReminderMenu(text string, rt model.ReminderReplyType, items []*model.ReminderItem) repository.MessageProvider
- func (s *MessageProviderSet) ShoppingDeleteConfirmation(text string) repository.MessageProvider
- func (s *MessageProviderSet) ShoppingMenu(text string, rt model.ShoppingReplyType) repository.MessageProvider
- func (s *MessageProviderSet) Text(text string) repository.MessageProvider
- func (s *MessageProviderSet) TimePicker(text, data string) repository.MessageProvider
- type ReminderChoices
- type ReminderDeleteConfirmation
- type ReminderItem
- type ReminderMenu
- type ShoppingDeleteConfirmation
- type ShoppingMenu
- type TextMessage
- type TimePicker
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( NewLINEBot, wire.Bind(new(repository.Bot), new(*LINEBot)), NewMessageProviderSet, wire.Bind(new(repository.MessageProviderSet), new(*MessageProviderSet)), )
Set provides a wire set.
Functions ¶
This section is empty.
Types ¶
type Image ¶ added in v1.2.0
type Image struct {
// contains filtered or unexported fields
}
func (*Image) ToMessage ¶ added in v1.2.0
func (i *Image) ToMessage() linebot.SendingMessage
type LINEBot ¶
type LINEBot struct {
// contains filtered or unexported fields
}
LINEBot implements repository.Bot.
func (*LINEBot) EventsFromRequest ¶
func (*LINEBot) PushMessage ¶ added in v1.1.0
func (b *LINEBot) PushMessage(ctx context.Context, to model.ConversationID, p repository.MessageProvider) error
func (*LINEBot) ReplyMessage ¶
func (b *LINEBot) ReplyMessage(ctx context.Context, e *model.Event, p repository.MessageProvider) error
type MessageProviderSet ¶
type MessageProviderSet struct{}
MessageProviderSet implements repository.MessageProviderSet.
func NewMessageProviderSet ¶
func NewMessageProviderSet() *MessageProviderSet
func (*MessageProviderSet) Image ¶ added in v1.2.0
func (s *MessageProviderSet) Image(originalURL, previewURL string) repository.MessageProvider
func (*MessageProviderSet) ReminderChoices ¶ added in v1.1.0
func (s *MessageProviderSet) ReminderChoices(text string, labels []string, types []model.ExecutorType) repository.MessageProvider
func (*MessageProviderSet) ReminderDeleteConfirmation ¶ added in v1.1.0
func (s *MessageProviderSet) ReminderDeleteConfirmation(text, data string) repository.MessageProvider
func (*MessageProviderSet) ReminderMenu ¶ added in v1.1.0
func (s *MessageProviderSet) ReminderMenu(text string, rt model.ReminderReplyType, items []*model.ReminderItem) repository.MessageProvider
func (*MessageProviderSet) ShoppingDeleteConfirmation ¶
func (s *MessageProviderSet) ShoppingDeleteConfirmation(text string) repository.MessageProvider
func (*MessageProviderSet) ShoppingMenu ¶
func (s *MessageProviderSet) ShoppingMenu(text string, rt model.ShoppingReplyType) repository.MessageProvider
func (*MessageProviderSet) Text ¶
func (s *MessageProviderSet) Text(text string) repository.MessageProvider
func (*MessageProviderSet) TimePicker ¶ added in v1.1.0
func (s *MessageProviderSet) TimePicker(text, data string) repository.MessageProvider
type ReminderChoices ¶ added in v1.1.0
type ReminderChoices struct {
// contains filtered or unexported fields
}
func (*ReminderChoices) ToMessage ¶ added in v1.1.3
func (r *ReminderChoices) ToMessage() linebot.SendingMessage
type ReminderDeleteConfirmation ¶ added in v1.1.0
type ReminderDeleteConfirmation struct {
// contains filtered or unexported fields
}
func (*ReminderDeleteConfirmation) ToMessage ¶ added in v1.1.3
func (c *ReminderDeleteConfirmation) ToMessage() linebot.SendingMessage
type ReminderItem ¶ added in v1.1.0
type ReminderMenu ¶ added in v1.1.0
type ReminderMenu struct {
// contains filtered or unexported fields
}
ShoppingMenu implements repository.MessageProvider.
func (*ReminderMenu) ToMessage ¶ added in v1.1.3
func (r *ReminderMenu) ToMessage() linebot.SendingMessage
type ShoppingDeleteConfirmation ¶
type ShoppingDeleteConfirmation struct {
// contains filtered or unexported fields
}
Message implements repository.MessageProvider.
func (*ShoppingDeleteConfirmation) ToMessage ¶ added in v1.1.3
func (p *ShoppingDeleteConfirmation) ToMessage() linebot.SendingMessage
AsMessage assigns the message to the given *linebot.SendingMessage.
type ShoppingMenu ¶
type ShoppingMenu struct {
// contains filtered or unexported fields
}
ShoppingMenu implements repository.MessageProvider.
func (*ShoppingMenu) ToMessage ¶ added in v1.1.3
func (p *ShoppingMenu) ToMessage() linebot.SendingMessage
type TextMessage ¶
type TextMessage struct {
// contains filtered or unexported fields
}
func (*TextMessage) ToMessage ¶ added in v1.1.3
func (p *TextMessage) ToMessage() linebot.SendingMessage
type TimePicker ¶ added in v1.1.0
type TimePicker struct {
// contains filtered or unexported fields
}
func (*TimePicker) ToMessage ¶ added in v1.1.3
func (p *TimePicker) ToMessage() linebot.SendingMessage
Click to show internal directories.
Click to hide internal directories.