fakes

package
v0.0.0-...-6993647 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeResolver

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

func NewFakeResolver

func NewFakeResolver() *FakeResolver

func (*FakeResolver) Resolve

func (r *FakeResolver) Resolve(hostname string) ([]net.IP, error)

func (*FakeResolver) ShouldReturnError

func (r *FakeResolver) ShouldReturnError(err error)

func (*FakeResolver) ShouldReturnIPs

func (r *FakeResolver) ShouldReturnIPs(ips []net.IP)

Jump to

Keyboard shortcuts

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