sd

package
v0.0.0-...-ae6eae3 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2016 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(name, service string, ip net.IP, port uint16, txt map[string][]byte)

Types

type Query

type Query struct {
	Chan <-chan *Service
	// contains filtered or unexported fields
}

func Discover

func Discover(service string, opts *QueryOpts) *Query

func (*Query) Done

func (q *Query) Done()

type QueryOpts

type QueryOpts struct {
	Dedup        bool
	ScanInterval time.Duration
}

type Service

type Service struct {
	Name string
	Ip   net.IP
	Port uint16
}

Jump to

Keyboard shortcuts

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