discovery

package
v0.0.0-...-b700939 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discover

type Discover interface {
	Register() error
	Close() error
}

Discover will register

func New

func New(discoveryType string, componentName string, serviceName string) (Discover, error)

New will new

type Hosts

type Hosts struct {
	IP, Port string
}

Hosts will have information about services available

func GetService

func GetService(key string) (h []Hosts)

GetService will list all available services

type Mdns

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

Mdns for data

func NewMdnsServer

func NewMdnsServer(componentName string, serviceName string) (*Mdns, error)

NewMdnsServer creates a new mDNS server

func (*Mdns) Close

func (dir *Mdns) Close() error

Close will shutdown the registered server

func (*Mdns) Register

func (dir *Mdns) Register() error

Register will register the service

Jump to

Keyboard shortcuts

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