Documentation ¶
Overview ¶
Package roomdisco provides discovery for room servers, allowing clients to automatically find servers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Discoverable ¶
type Discoverable interface { Close() error // contains filtered or unexported methods }
Discoverable is an opaque type that contains an mDNS discovery server.
func NewDiscoverable ¶
func NewDiscoverable(zc *ZoneConfig) (Discoverable, error)
NewDiscoverable returns a new Discoverable server that is advertizing the Room in zc.
func NewDiscoverableServer ¶
func NewDiscoverableServer(s *room.Server) (Discoverable, error)
NewDiscoverableServer returns a Discoverable using the default ZoneConfig for s.
type ZoneConfig ¶
ZoneConfig configures mDNS for a Room.
func NewZoneConfig ¶
func NewZoneConfig(r *room.Room) *ZoneConfig
NewZoneConfig returns a new ZoneConfig for r.
func ServerConfig ¶
func ServerConfig(s *room.Server) (*ZoneConfig, error)
ServerConfig returns a ZoneConfig with address information derived from s.
func (*ZoneConfig) Instance ¶
func (zc *ZoneConfig) Instance() string
Instance returns the mdns instance identifier corresponding to zc.Room.Name.
Click to show internal directories.
Click to hide internal directories.