Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultUDPPort int = 50210 DefaultAdvertisePeriod = 5 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advertiser ¶
type Advertiser interface { Start() error Stop() error Advertise() error AdvertiseEvery(seconds int) }
func NewAdvertiser ¶
func NewAdvertiser(ip net.IP, uuid, name, port string) (Advertiser, error)
type Broadcaster ¶
type Broadcaster struct {
// contains filtered or unexported fields
}
func NewBroadCaster ¶
func (*Broadcaster) Broadcast ¶
func (b *Broadcaster) Broadcast() (err error)
Click to show internal directories.
Click to hide internal directories.