local

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 6 Imported by: 2

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) Stop added in v0.5.0

func (d *Discovery) Stop() error

Stop stops 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