mdns

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package mdns is a convenience wrapper over github.com/grandcat/zeroconf for listing Altid services over mdns

go get github.com/altid/server/mdns

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(srv *Entry) error

Register adds the service listing to the intranet registry

Types

type Entry

type Entry struct {
	Addr string
	Name string
	Txt  []string
	Port int
	// contains filtered or unexported fields
}

An Entry indicates a service we want to broadcast over mDNS

func (*Entry) Cleanup

func (e *Entry) Cleanup()

Cleanup stops the broadcast

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL