test

package module
v0.0.0-...-984a975 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ALICE_ID = "A3UCXD63FCFXMX7GH64FZM5EAHH3PGLKWRMBHPGY4AA3MGM6SXPQ"

Alice runs on 14000 ( testdata/alice for standalone debug ).

View Source
const ALICE_KEYS = `` /* 1723-byte string literal not displayed */
View Source
const ALICE_PORT = 6007
View Source
const ALICE_VIP = "fd00::f054:f1ab:89ed:c146"
View Source
const BOB_ID = "BVMXJRUH7FVKYBZBXJ7HQVHDIMDO7ADRUUQLYMDU6X7SARNP5OXA"
View Source
const BOB_KEYS = `` /* 1723-byte string literal not displayed */
View Source
const BOB_PORT = 6107
View Source
const BOB_VIP = "fd00::156:6388:1fdf:cb69"
View Source
const CAROL_ID = "IN7E4J4VZ66TJZFY4ZABEM6STXIBEU7GVAVOE5NCM5DLVRIDJNFQ"
View Source
const CAROL_KEYS = `` /* 1636-byte string literal not displayed */
View Source
const CAROL_PORT = 6207
View Source
const CAROL_VIP = "fd00::e524:71c0:d68e:f0ce"

Variables

View Source
var (
	// Base port 6000
	// Uses H2R to connect to Gate
	Alice *ugatesvc.UGate

	// 6100
	// Uses QUIC to connect to Gate
	Bob *ugatesvc.UGate

	// Client - in process.
	// 6200
	Carol *ugatesvc.UGate

	// Gateway/control plane for Bob and Alice
	// 6300
	Gate *ugatesvc.UGate

	// Echo - acts as a 'server' providing the echo service.
	// 6400
	Echo *ugatesvc.UGate
)

WIP: updating the ports and scenarios

Functions

func BasicGate

func BasicGate() *ugatesvc.UGate

func CheckEcho

func CheckEcho(in io.Reader, out io.Writer) (string, error)

CheckEcho will verify the behavior of the echo server. - write chunk1 (to verify we don't hang ) - read response from server - should include metadata for the request plus chunk1 -

func InitEcho

func InitEcho(port int) *ugatesvc.UGate

func InitTestServer

func InitTestServer(kubecfg string, cfg *ugate.GateCfg, ext func(*ugatesvc.UGate)) *ugatesvc.UGate

InitTestServer creates a node with the given config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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