hop

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 5 Imported by: 32

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 ClientIPSelectOption added in v0.1.10

func ClientIPSelectOption(clientIP net.IP) SelectOption

func HeaderSelectOption added in v0.1.10

func HeaderSelectOption(header http.Header) SelectOption

func HostSelectOption

func HostSelectOption(host string) SelectOption

func MethodSelectOption added in v0.1.10

func MethodSelectOption(method string) SelectOption

func NetworkSelectOption

func NetworkSelectOption(network string) SelectOption

func PathSelectOption

func PathSelectOption(path string) SelectOption

func ProtocolSelectOption

func ProtocolSelectOption(protocol string) SelectOption

func QuerySelectOption added in v0.1.10

func QuerySelectOption(query url.Values) SelectOption

type SelectOptions

type SelectOptions struct {
	ClientIP net.IP
	Network  string
	Addr     string
	Protocol string
	Host     string
	Method   string
	Path     string
	Query    url.Values
	Header   http.Header
}

Jump to

Keyboard shortcuts

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