reducer

package
v0.0.0-...-b5cca38 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reducer

type Reducer struct {
	Bot         *tgbotapi.BotAPI
	Persistence persistence.Persistence
}

Reducer reduce and handle updates accordingly

func NewReducer

func NewReducer(bot *tgbotapi.BotAPI, db persistence.Persistence) *Reducer

NewReducer get a new Reducer

func (*Reducer) HandleUpdates

func (r *Reducer) HandleUpdates(updates tgbotapi.UpdatesChannel)

HandleUpdates reduce updates to correct handler function

Jump to

Keyboard shortcuts

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