hop

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 2 Imported by: 49

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