Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
func (*Hook) Fire ¶
func (e *Hook) Fire(params ...interface{})
Fire calls hooks subscribed to Hookname, but does not case about their return values.
func (*Hook) HasSubscribers ¶
func (*Hook) Iterate ¶
func (e *Hook) Iterate(stopfunc interface{}, params ...interface{})
Calls all hooks subscribed to Hookname, with params, feeding the output of every hook into stopfunc. Stopfunc's argument signature must match the signatures of return values of the called hooks. Stopfunc must return a boolean value. A boolean value of true stops the iteration. Iterate allows to mimic the semantics of calling all hooks one by one.
func (*Hook) SubscriberCount ¶
func (*Hook) Subscribers ¶
func (e *Hook) Subscribers() []iface.Subscriber
type Hooks ¶
type Hooks struct {
// contains filtered or unexported fields
}
Used to call subscribed hooks.
type InstanceCacher ¶
This is an iface.Module, which wraps the github.com/opesun/nocrud/frame/mod implementation and implements instance caching.
func (InstanceCacher) Instance ¶
func (m InstanceCacher) Instance() iface.Instance
Click to show internal directories.
Click to hide internal directories.