MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / announce

Method announce

server/server.go:263–268  ·  view source on GitHub ↗

announce publishes the presence of this server to the cluster

()

Source from the content-addressed store, hash-verified

261
262// announce publishes the presence of this server to the cluster
263func (s *Server) announce() {
264 s.publishAnnounce(proxy.AnnouncementSubject(s.MBPrefix), &proxy.Announcement{
265 Node: s.AsteriskID,
266 Application: s.Application,
267 })
268}
269
270// runEventHandler processes events which are received from ARI
271func (s *Server) runEventHandler(ctx context.Context) {

Callers 2

runAnnouncerMethod · 0.95
pingHandlerMethod · 0.95

Calls 2

publishAnnounceMethod · 0.95
AnnouncementSubjectFunction · 0.92

Tested by

no test coverage detected