dnssdAdapter

package
v0.0.0-...-602a42f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

The package dnssdAdapter provides an intermediate layer between the apiservice implementation and the thirdparty dns-sd implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advertiser

type Advertiser struct {
	// contains filtered or unexported fields
}

func NewAdvertiser

func NewAdvertiser(hostname string, ips []net.IP, ifaces []net.Interface) *Advertiser

func (*Advertiser) AddService

func (a *Advertiser) AddService(si dataModel.DNSSDServiceInfo) error

func (*Advertiser) GetService

func (a *Advertiser) GetService(service_name string) *dataModel.DNSSDServiceInfo

func (*Advertiser) GetServices

func (a *Advertiser) GetServices() []string

func (*Advertiser) RemoveService

func (a *Advertiser) RemoveService(service_name string)

func (*Advertiser) Reset

func (a *Advertiser) Reset()

type ServicesBrowser

type ServicesBrowser struct {
	// contains filtered or unexported fields
}

func NewServicesBrowser

func NewServicesBrowser() (*ServicesBrowser, error)

create a new ServicesBrowser. The new instance starts browsing for services immediately

func (*ServicesBrowser) ClearServiceCache

func (sb *ServicesBrowser) ClearServiceCache()

func (*ServicesBrowser) GetServiceInfos

func (sb *ServicesBrowser) GetServiceInfos(service_name string) []dataModel.DNSSDServiceInfo

func (*ServicesBrowser) GetServicesCache

func (sb *ServicesBrowser) GetServicesCache() []string

func (*ServicesBrowser) Reset

func (sb *ServicesBrowser) Reset() error

func (*ServicesBrowser) StartBrowsing

func (sb *ServicesBrowser) StartBrowsing() error

func (*ServicesBrowser) StopBrowsing

func (sb *ServicesBrowser) StopBrowsing()

Jump to

Keyboard shortcuts

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