stuntest

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package stuntest contains helpers for testing STUN clients

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUDPServer

func NewUDPServer(
	t *testing.T,
	network string,
	maxMessageSize int,
	handler func(req []byte) ([]byte, error),
) (net.Addr, func(t *testing.T), error)

NewUDPServer creates an udp server for testing. The supplied handler function will be called with the request and should be used to emulate the server behavior.

Types

This section is empty.

Jump to

Keyboard shortcuts

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