...

Package mesh

import "github.com/Diarkis/diarkis/mesh/lib/announcer"
Overview
Index

Overview ▾

Constants

Interval Update interval in second TODO: should be configurable

const Interval = 2

Update Event name before update

const Update = "update"

Updated Event name after update

const Updated = "updated"

func Emit

func Emit(eventName string)

Emit Emits an event when announcer updates with mars-server

func On

func On(eventName string, handler func())

On Listener of Emitted events

func Start

func Start()

Start Starts announcer

func Stop

func Stop()

Stop Stops announcer