bootutil

package
v0.0.0-...-055f8da Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: Apache-2.0, MIT Imports: 12 Imported by: 1

Documentation

Overview

Package bootutil provides utilities for parsing and instantiating boot services

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownBootProto = errors.New("unknown boot protocol")

ErrUnknownBootProto is returned when the multiaddr passed to Parse does not contain a recognized boot protocol.

Functions

func Dial

func Dial(h host.Host, maddr ma.Multiaddr, opt ...socket.Option) (discovery.Discoverer, error)

func DialCIDR

func DialCIDR(h host.Host, maddr ma.Multiaddr, opt ...socket.Option) (*crawl.Crawler, error)

func DialMulticast

func DialMulticast(h host.Host, maddr ma.Multiaddr, opt ...socket.Option) (*survey.Surveyor, error)

func DialPortRange

func DialPortRange(h host.Host, maddr ma.Multiaddr, opt ...socket.Option) (*crawl.Crawler, error)

func DialString

func DialString(h host.Host, s string, opt ...socket.Option) (discovery.Discoverer, error)

func IsCIDR

func IsCIDR(maddr ma.Multiaddr) bool

func IsMulticast

func IsMulticast(maddr ma.Multiaddr) bool

func IsP2P

func IsP2P(maddr ma.Multiaddr) bool

func IsPortRange

func IsPortRange(maddr ma.Multiaddr) bool

IsPortRange returns true if maddr is a UDP address with no subprotocols. This function MAY be extended to support port ranges ranges in the near future.

func IsSurvey

func IsSurvey(maddr ma.Multiaddr) bool

func Listen

func Listen(h host.Host, maddr ma.Multiaddr, opt ...socket.Option) (discovery.Discovery, error)

func ListenCIDR

func ListenCIDR(h host.Host, maddr ma.Multiaddr, opt ...socket.Option) (*crawl.Crawler, error)

func ListenString

func ListenString(h host.Host, s string, opt ...socket.Option) (discovery.Discovery, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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