Documentation ¶
Index ¶
- type LineService
- func (s *LineService) GetChannelInfo(ctx context.Context, accessToken string) (*linebot.BotInfoResponse, domain.Error)
- func (s *LineService) IssueAccessToken(ctx context.Context, ExternalChannelID string, ExternalChannelSecret string) (string, time.Time, domain.Error)
- func (s *LineService) ParseLineEvents(_ context.Context, payload []byte) ([]domain.LineEvent, domain.Error)
- func (s *LineService) SendMessage(ctx context.Context, params SendMessageParams) (err error)
- func (s *LineService) ValidateSignature(_ context.Context, externalChannelSecret, signature string, payload []byte) bool
- type SendMessageParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LineService ¶
type LineService struct {
// contains filtered or unexported fields
}
func NewLineService ¶
func NewLineService(_ context.Context) *LineService
func (*LineService) GetChannelInfo ¶
func (s *LineService) GetChannelInfo(ctx context.Context, accessToken string) (*linebot.BotInfoResponse, domain.Error)
func (*LineService) IssueAccessToken ¶
func (*LineService) ParseLineEvents ¶
func (*LineService) SendMessage ¶
func (s *LineService) SendMessage(ctx context.Context, params SendMessageParams) (err error)
SendMessage would take care of PushMessage and ReplyMessage internally. It would also fall back to PushMessage if ReplyMessage fail.
func (*LineService) ValidateSignature ¶
type SendMessageParams ¶
Click to show internal directories.
Click to hide internal directories.