Documentation
¶
Index ¶
- type Hook
- type Registry
- func (r *Registry) AddScript(hookName string, script *Script) error
- func (r *Registry) Clear()
- func (r *Registry) Count() int
- func (r *Registry) GetAllHooks() []*Hook
- func (r *Registry) GetHook(name string) (*Hook, error)
- func (r *Registry) GetScripts(hookName string) []*Script
- func (r *Registry) ListHooks() []string
- func (r *Registry) RegisterHook(name, description string) error
- func (r *Registry) RemoveScript(hookName, scriptName string) error
- func (r *Registry) ScriptCount() int
- type Script
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) GetAllHooks ¶
func (*Registry) GetScripts ¶
func (*Registry) RegisterHook ¶
func (*Registry) RemoveScript ¶
func (*Registry) ScriptCount ¶
Click to show internal directories.
Click to hide internal directories.