handlers

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(ctx *core.Context, httpEvent *model.HTTPEvent)

func SetTypeHandler added in v1.1.3

func SetTypeHandler(conf *config.Config, eventType string, handler Handler)

Types

type Handler added in v1.1.2

type Handler interface {
	GetEvent() interface{}
	Handle(*core.Context, interface{}) error
}

type Handlers

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

type NotFoundHandlerErr added in v1.0.9

type NotFoundHandlerErr struct {
	EventType string
}

func (NotFoundHandlerErr) Error added in v1.0.9

func (e NotFoundHandlerErr) Error() string

Jump to

Keyboard shortcuts

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