handlers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 3 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(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