handlers

package
v2.0.1-beta37 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoStrHandler

type EchoStrHandler struct {
	contract.EventHandlerInterface

	App *kernel.ApplicationInterface
}

func NewEchoStrHandler

func NewEchoStrHandler(app *kernel.ApplicationInterface) *EchoStrHandler

func (*EchoStrHandler) Handle

func (handler *EchoStrHandler) Handle(request *http.Request, header contract.EventInterface, content interface{}) interface{}

type ServerCallbackHandler

type ServerCallbackHandler struct {
	Callback func(header contract.EventInterface, content interface{}) interface{}
}

func NewServerCallbackHandler

func NewServerCallbackHandler() *ServerCallbackHandler

func (*ServerCallbackHandler) Handle

func (handler *ServerCallbackHandler) Handle(header contract.EventInterface, content interface{}) interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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