http

package
v1.4.22 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Set provides a wire set.

Functions

func NewHandler

func NewHandler(
	bot service.Bot,
	auth *Authorizer,
	eventHandler usecase.EventHandler,
	imageHandler usecase.ImageHandler,
	publisher accesslog.Publisher,
	cfg *config.AccessLog,
	cs *config.Sentry,
) (http.Handler, error)

Types

type Authorizer added in v1.2.7

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

func NewAuthorizer added in v1.2.7

func NewAuthorizer(ctx context.Context, conf *config.LINEBot, cs *config.ServiceEndpoint) (*Authorizer, error)

func (*Authorizer) Authorize added in v1.2.7

func (a *Authorizer) Authorize(ctx context.Context, r *http.Request) error

Jump to

Keyboard shortcuts

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