integrate

package
v0.0.0-...-e3e1183 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const HTTPTestPath = "test/path"

Variables

This section is empty.

Functions

This section is empty.

Types

type TestCase

type TestCase struct {
	AppProtocol    types.Protocol
	MeshProtocol   types.Protocol
	C              chan error
	T              *testing.T
	AppServer      util.UpstreamServer
	ClientMeshAddr string
	ServerMeshAddr string
	Finish         chan bool
}

func NewTestCase

func NewTestCase(t *testing.T, app, mesh types.Protocol, server util.UpstreamServer) *TestCase

func (*TestCase) FinishCase

func (c *TestCase) FinishCase()

Finish case and wait close returns

func (*TestCase) RunCase

func (c *TestCase) RunCase(n int, interval int)

mesh to mesh use tls if "istls" is true client do "n" times request, interval time (ms)

func (*TestCase) Start

func (c *TestCase) Start(tls bool)

client - mesh - mesh - server

func (*TestCase) StartProxy

func (c *TestCase) StartProxy()

client - mesh - server not support tls ignore parameter : mesh protocol

func (*TestCase) StartX

func (c *TestCase) StartX(subprotocol string)

XProtocol CASE should use subprotocol

Jump to

Keyboard shortcuts

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