search

package
v0.0.0-...-379887d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

search handles beacons, search requests and responses

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelProviderser

type ChannelProviderser interface {
	ChannelProviders() []types.ChannelProvider
}

type Server

type Server struct {
	// GUID is a randomly generated GUID that identifies the server.
	// It will be filled in by Serve if it is blank.
	GUID [12]byte
	// ServerAddr is the TCP address that the TCP server is listening on.
	ServerAddr *net.TCPAddr

	Server ChannelProviderser
}

Server handles UDP beacons and searches.

func (*Server) Search

func (*Server) Serve

func (s *Server) Serve(ctx context.Context) error

Serve transmits beacons and listens for searches on every interface on the machine.

Jump to

Keyboard shortcuts

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