hooks

package
v0.0.0-...-ce71dfa Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2012 License: BSD-2-Clause-Views Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hook

type Hook struct {
}

func (*Hook) Fire

func (e *Hook) Fire(params ...interface{})

func (*Hook) HasSubscribers

func (e *Hook) HasSubscribers() bool

func (*Hook) Iterate

func (e *Hook) Iterate(stopfunc interface{}, params ...interface{})

func (*Hook) SubscriberCount

func (e *Hook) SubscriberCount() int

func (*Hook) Subscribers

func (e *Hook) Subscribers() []iface.Subscriber

type Hooks

type Hooks struct {
}

Used to call subscribed hooks.

func New

func New() *Hooks

func (*Hooks) Initer

func (e *Hooks) Initer(initer func(iface.Instance) error)

func (*Hooks) Module

func (e *Hooks) Module(modname string) iface.Module

func (*Hooks) Select

func (e *Hooks) Select(Hookname string) iface.Hook

type InstanceCacher

type InstanceCacher struct {
	iface.Module
}

func (InstanceCacher) Instance

func (m InstanceCacher) Instance() iface.Instance

Jump to

Keyboard shortcuts

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