function

package
v0.0.0-...-df918ef Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: ISC Imports: 1 Imported by: 1

Documentation

Overview

Package function provides an implementation of event.Handler based around a single function

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuncHandler

type FuncHandler func(msg *event.Message) error

FuncHandler is a thin wrapper around a function that implements event.Handler

func (FuncHandler) OnMessage

func (f FuncHandler) OnMessage(msg *event.Message) error

OnMessage redirects the incoming message to the func on FuncHandler

Jump to

Keyboard shortcuts

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