testing

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeAPIServer

func FakeAPIServer(root interface{}) net.Conn

FakeAPIServer returns a net.Conn implementation that serves the RPC server defined by the given root object (see rpc.Conn.Serve).

Types

type IPAddrResolverMap

type IPAddrResolverMap map[string][]string

IPAddrResolverMap implements IPAddrResolver by looking up the addresses in the map, which maps host names to IP addresses. The strings in the value slices should be valid IP addresses.

func (IPAddrResolverMap) LookupIPAddr

func (r IPAddrResolverMap) LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error)

Jump to

Keyboard shortcuts

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