eventhandler

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Follow

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

func NewFollowHandler

func NewFollowHandler(
	license usecases.License,
) *Follow

func (*Follow) EventType

func (h *Follow) EventType() linebot.EventType

func (*Follow) Handle

func (h *Follow) Handle(ctx context.Context, event *linebot.Event) error

type Join

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

func NewJoinEventHandler

func NewJoinEventHandler(
	license usecases.License,
) *Join

func (*Join) EventType

func (h *Join) EventType() linebot.EventType

func (*Join) Handle

func (h *Join) Handle(ctx context.Context, event *linebot.Event) error

type Leave

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

func NewLeaveHandler

func NewLeaveHandler(
	license usecases.License,
) *Leave

func (*Leave) EventType

func (h *Leave) EventType() linebot.EventType

func (*Leave) Handle

func (h *Leave) Handle(ctx context.Context, event *linebot.Event) error

type Message

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

func NewMessageEventHandler

func NewMessageEventHandler(
	logger *zap.Logger,
	lineRepo usecases.MessagingRepository,
	chat usecases.Chat,
	license usecases.License,
) *Message

func (*Message) EventType

func (h *Message) EventType() linebot.EventType

func (*Message) Handle

func (h *Message) Handle(ctx context.Context, event *linebot.Event) error

type Unfollow

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

func NewUnfollowHandler

func NewUnfollowHandler(
	license usecases.License,
) *Unfollow

func (*Unfollow) EventType

func (h *Unfollow) EventType() linebot.EventType

func (*Unfollow) Handle

func (h *Unfollow) Handle(ctx context.Context, event *linebot.Event) error

Jump to

Keyboard shortcuts

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