open-nomad/helper/raftutil
Drew Bailey 86080e25a9
Send events to EventSinks (#9171)
* Process to send events to configured sinks

This PR adds a SinkManager to a server which is responsible for managing
managed sinks. Managed sinks subscribe to the event broker and send
events to a sink writer (webhook). When changes to the eventstore are
made the sinkmanager and managed sink are responsible for reloading or
starting a new managed sink.

* periodically check in sink progress to raft

Save progress on the last successfully sent index to raft. This allows a
managed sink to resume close to where it left off in the event of a lost
server or leadership change

dereference eventsink so we can accurately use the watchch

When using a pointer to eventsink struct it was updated immediately and our reload logic would not trigger
2020-10-26 17:27:54 -04:00
..
fsm.go logging tweaks 2020-09-24 17:30:50 -04:00
fsm_oss.go
generate.go
generate_msgtypes.sh Update generate_msgtypes.sh now that iota is gone 2020-10-22 15:26:32 -07:00
msgpack.go reverting export of fixTime 2020-09-29 01:21:03 -04:00
msgpack_test.go reverting export of fixTime 2020-09-29 01:21:03 -04:00
msgtypes.go Send events to EventSinks (#9171) 2020-10-26 17:27:54 -04:00
state.go return explicit error if not found/empty path falls through 2020-09-29 14:55:28 -04:00