weixin_39849054
weixin_39849054
2020-12-09 07:22

Internal events framework

The events framework allows events to be generated and broadcast internally within the GD2 cluster, with events.Broadcast(Event).

Events are either local or global. Local events are broadcast just locally within a GD2. Global events are broadcast globally to other GD2s.

Interested parties can register handlers for all or specific events using events.Register(EventHandler, events ...string)

该提问来源于开源项目:gluster/glusterd2

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

7条回答