local

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

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

Discovery is a grav Discovery plugin using local network multicast

func New

func New() *Discovery

New creates a new local discovery plugin

func (*Discovery) Start

func (d *Discovery) Start(opts *grav.DiscoveryOpts, discoveryFunc grav.DiscoveryFunc) error

Start starts discovery

func (*Discovery) UseDiscoveryFunc

func (d *Discovery) UseDiscoveryFunc(dFunc func(endpoint string, uuid string))

UseDiscoveryFunc sets the function to be used when a new peer is discovered

Jump to

Keyboard shortcuts

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