handlers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 0 Imported by: 152

Documentation

Overview

Package handlers provides handler types which implements EventHandler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DoneFunc

type DoneFunc func()

DoneFunc handles the end of a stream.

func (DoneFunc) Handle

func (handle DoneFunc) Handle(item interface{})

Handle registers DoneFunc to EventHandler.

type ErrFunc

type ErrFunc func(error)

ErrFunc handles an error in a stream.

func (ErrFunc) Handle

func (handle ErrFunc) Handle(item interface{})

Handle registers ErrFunc to EventHandler.

type NextFunc

type NextFunc func(interface{})

NextFunc handles a next item in a stream.

func (NextFunc) Handle

func (handle NextFunc) Handle(item interface{})

Handle registers NextFunc to EventHandler.

Jump to

Keyboard shortcuts

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