Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Set = wire.NewSet( NewEventHandler, wire.Bind(new(usecase.EventHandler), new(*EventHandler)), NewReminder, NewShopping, NewScreenshot, wire.Bind(new(usecase.ScreenshotHandler), new(*Screenshot)), NewWeather, NewImage, wire.Bind(new(usecase.ImageHandler), new(*Image)), )
Set provides a wire set.
Functions ¶
This section is empty.
Types ¶
type EventHandler ¶
type EventHandler struct {
// contains filtered or unexported fields
}
func NewEventHandler ¶
func NewEventHandler( shoppingInteractor *Shopping, reminderInteractor *Reminder, weatherInteractor *Weather, conversation service.Conversation, reminder service.Reminder, message repository.MessageProviderSet, bot service.Bot, conf *config.LINEBot, ) (*EventHandler, error)
func (*EventHandler) HandleReminder ¶ added in v1.1.0
func (h *EventHandler) HandleReminder(ctx context.Context, itemIDJSON *model.ReminderItemIDJSON) error
func (*EventHandler) HandleSchedule ¶ added in v1.1.0
func (h *EventHandler) HandleSchedule(ctx context.Context) error
type Image ¶ added in v1.2.0
type Image struct {
// contains filtered or unexported fields
}
func NewImage ¶ added in v1.2.0
func NewImage(imageStore repository.ImageStore) *Image
type Reminder ¶ added in v1.1.0
type Reminder struct {
// contains filtered or unexported fields
}
func NewReminder ¶ added in v1.1.0
func NewReminder( conversation service.Conversation, reminder service.Reminder, message repository.MessageProviderSet, bot service.Bot, conf *config.Time, ) *Reminder
type Screenshot ¶ added in v1.1.4
type Screenshot struct {
// contains filtered or unexported fields
}
func NewScreenshot ¶ added in v1.1.4
func NewScreenshot(browser repository.Browser, weather service.Weather) *Screenshot
type Shopping ¶
type Shopping struct {
// contains filtered or unexported fields
}
func NewShopping ¶
func NewShopping( conversation service.Conversation, shopping service.Shopping, nlParser repository.NLParser, message repository.MessageProviderSet, bot service.Bot, ) *Shopping
func (*Shopping) HandleReminder ¶ added in v1.1.0
type Weather ¶ added in v1.2.0
type Weather struct {
// contains filtered or unexported fields
}
func NewWeather ¶ added in v1.2.0
func NewWeather( weather service.Weather, message repository.MessageProviderSet, bot service.Bot, ) *Weather
Click to show internal directories.
Click to hide internal directories.