hop

package
v0.0.0-...-f06f3bb Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 2 Imported by: 48

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hop

type Hop interface {
	Select(ctx context.Context, opts ...SelectOption) *chain.Node
}

type NodeList

type NodeList interface {
	Nodes() []*chain.Node
}

type SelectOption

type SelectOption func(*SelectOptions)

func AddrSelectOption

func AddrSelectOption(addr string) SelectOption

func HostSelectOption

func HostSelectOption(host string) SelectOption

func NetworkSelectOption

func NetworkSelectOption(network string) SelectOption

func PathSelectOption

func PathSelectOption(path string) SelectOption

func ProtocolSelectOption

func ProtocolSelectOption(protocol string) SelectOption

type SelectOptions

type SelectOptions struct {
	Network  string
	Addr     string
	Protocol string
	Host     string
	Path     string
}

Jump to

Keyboard shortcuts

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