hooks

package
v0.0.0-...-e6e707d Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Apply()
}

type Filter

type Filter interface {
	Apply() interface{}
}

type Hooks

type Hooks struct {
	// contains filtered or unexported fields
}

func (*Hooks) AddFilter

func (h *Hooks) AddFilter(tag string, filter Filter, priority int) bool

func (*Hooks) ApplyFilter

func (h *Hooks) ApplyFilter(tag string) (interface{}, error)

Jump to

Keyboard shortcuts

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