httphandler

package
v8.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorHandlerFunc

type ErrorHandlerFunc func(error, *http.Request)

ErrorHandlerFunc type

type EventsHandlerFunc

type EventsHandlerFunc func([]*linebot.Event, *http.Request)

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)

Jump to

Keyboard shortcuts

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