local

package
v0.0.0-...-5372b76 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalFilter

type LocalFilter struct {
	Rules []*Rule
	// contains filtered or unexported fields
}

func LoadFilterFile

func LoadFilterFile(filepath string, action norobo.Action) (*LocalFilter, error)

func NewLocalFilter

func NewLocalFilter(description string, action norobo.Action) *LocalFilter

func (*LocalFilter) Action

func (f *LocalFilter) Action() norobo.Action

func (*LocalFilter) Add

func (l *LocalFilter) Add(description, name, number string, fn func(*norobo.Call) bool) error

func (*LocalFilter) Check

func (f *LocalFilter) Check(c *norobo.Call, result chan *norobo.FilterResult, cancel chan struct{}, done *sync.WaitGroup)

func (*LocalFilter) Description

func (f *LocalFilter) Description() string

type Rule

type Rule struct {
	Description string
	// contains filtered or unexported fields
}

func NewRule

func NewRule(description, name, number string, fn func(*norobo.Call) bool) (r *Rule, err error)

func (*Rule) Match

func (r *Rule) Match(call *norobo.Call) bool

Jump to

Keyboard shortcuts

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