Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hooks ¶
Hooks is an array of Hook objects
func (*Hooks) Append ¶
Append appends hooks unless the new hooks contain a hook with an ID that already exists
func (*Hooks) LoadFromFile ¶
LoadFromFile attempts to load hooks from the specified file, which can be either JSON or YAML. The asTemplate parameter causes the file contents to be parsed as a Go text/template prior to unmarshalling.
type HooksFiles ¶
type HooksFiles []string
HooksFiles is a slice of String
func (*HooksFiles) String ¶
func (h *HooksFiles) String() string
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*Manager) Notify ¶
func (m *Manager) Notify()
Notify sends a notification to the manager that the hooks should be reloaded
func (*Manager) StartFileWatcher ¶
Click to show internal directories.
Click to hide internal directories.