filters

package
v0.0.0-...-9135915 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AndCallback

func AndCallback(fs ...CallbackFilter) *and

func AndMsg

func AndMsg(fs ...MsgFilter) *and

func DataShouldMatch

func DataShouldMatch(re *regexp.Regexp) *data

func OrCallback

func OrCallback(fs ...CallbackFilter) *or

func OrMsg

func OrMsg(fs ...MsgFilter) *or

func WithSender

func WithSender() *sender

Types

type CallbackFilter

type CallbackFilter interface {
	FilterCallback(*tb.Callback) (bool, error)
}

type MsgFilter

type MsgFilter interface {
	FilterMsg(*tb.Message) (bool, error)
}

Jump to

Keyboard shortcuts

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