handler

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHandlerNotFound = errors.New("dump handler not found")
)

Functions

func RegisterHandler

func RegisterHandler(name string, h Handler)

Types

type Handler

type Handler interface {
	Handle(evt *event.Event) error
}

Handler dump 数据处理器

func GetHandler

func GetHandler(name string) (Handler, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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