statichosts

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: MIT Imports: 0 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostList

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

HostList is a static list of hosts to bootstrap from.

func New

func New(hosts ...string) *HostList

New creates a provider with a static list of hosts.

func (*HostList) Hosts

func (p *HostList) Hosts() ([]string, error)

Hosts just returns the static list of hosts that was provided to this struct on construction.

Jump to

Keyboard shortcuts

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