Пример #1
0
func intiliseTopology(flipper types.FlipperClient, sentinelManager *sentinel.SentinelManager) {

	topology := sentinelManager.GetCurrentTopology()
	flipper.InitialiseRunningState(&topology)
}
Пример #2
0
func loopSentinelEvents(flipper types.FlipperClient, masterEvents chan types.MasterSwitchedEvent) {

	for event := range masterEvents {
		flipper.Orchestrate(event)
	}
}