handler

package
v0.0.0-...-9433b64 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handle

type Handle[T any] struct {
	Handler
}

todo 通过泛型简化handler

func (Handle[T]) ObjectCreated

func (Handle[T]) ObjectCreated(obj interface{}) (err error)

func (Handle[T]) ObjectDeleted

func (Handle[T]) ObjectDeleted(obj interface{}) (err error)

type Handler

type Handler interface {
	ObjectCreated(interface{}) error
	ObjectDeleted(interface{}) error
}

Jump to

Keyboard shortcuts

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