Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook is an executor hook implementation that will register and deregister a service instance in Consul right after startup and just before task termination, respectively.
func (*Hook) DeregisterFromConsul ¶
DeregisterFromConsul will deregister service IDs from Consul that were created during AfterTaskStartEvent hook event.
func (*Hook) HandleEvent ¶
HandleEvent calls appropriate hook functions that correspond to supported event types. Unsupported events are ignored.
Click to show internal directories.
Click to hide internal directories.