rrhandler

package
v0.0.0-...-ea46046 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(interface{}, interface{})

handler for requests

type HandlerRegister

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

func CreateHandlerRegister

func CreateHandlerRegister() (error, *HandlerRegister)

func (*HandlerRegister) Add

func (hr *HandlerRegister) Add(key string, h Handler, t time.Duration)

func (*HandlerRegister) Get

func (hr *HandlerRegister) Get(key string) (error, *HandlerWrapper)

type HandlerWrapper

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

func (HandlerWrapper) Run

func (h HandlerWrapper) Run(c interface{}, msg interface{})

Jump to

Keyboard shortcuts

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