tester

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package tester provies test facilities for client and servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DialFS

type DialFS struct {
	Prefix string
	FS     fs.FS
}

DialFS implements a fake dialer, which can stream fs files by stub connections.

func (*DialFS) Dial

func (dialer *DialFS) Dial(_ context.Context, host string, _ *tls.Config) (net.Conn, error)

Dial returns a stub connection, which streams bytes from domain file.

Jump to

Keyboard shortcuts

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