Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventsHandlerFunc ¶
EventsHandlerFunc type
type WebhookHandler ¶
type WebhookHandler struct {
// contains filtered or unexported fields
}
WebhookHandler type Deprecated: Use OpenAPI based classes instead.
func New ¶
func New(channelSecret, channelToken string) (*WebhookHandler, error)
New returns a new WebhookHandler instance. Deprecated: Use OpenAPI based classes instead.
func (*WebhookHandler) HandleError ¶
func (wh *WebhookHandler) HandleError(f ErrorHandlerFunc)
HandleError method
func (*WebhookHandler) HandleEvents ¶
func (wh *WebhookHandler) HandleEvents(f EventsHandlerFunc)
HandleEvents method
func (*WebhookHandler) NewClient ¶
func (wh *WebhookHandler) NewClient(options ...linebot.ClientOption) (*linebot.Client, error)
NewClient method
func (*WebhookHandler) ServeHTTP ¶
func (wh *WebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.