discovery

package
v0.0.0-...-a838072 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2019 License: Unlicense Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = cl.NewSubSystem(pkgs.Name(_d), "info")

Functions

func GetParallelcoinServiceName

func GetParallelcoinServiceName(params *netparams.Params) string

func GetRouteableInterface

func GetRouteableInterface() (lanInterface *net.Interface)

GetRouteableInterface returns the address and interface of the internet -facing network interface

Types

type Request

type Request struct {
	Key     string
	Address string
}

type RequestFunc

type RequestFunc func(key, address string)

func Serve

func Serve(params *netparams.Params, lanInterface *net.Interface) (cancel context.
	CancelFunc, request RequestFunc, err error)

type ResultsFunc

type ResultsFunc func() []*zeroconf.ServiceEntry

func AsyncZeroConfSearch

func AsyncZeroConfSearch(service string, myInstance string) (
	cancel context.CancelFunc, results ResultsFunc, err error)

Jump to

Keyboard shortcuts

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