v1helpers

package
v0.13.23 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTestServer

func RunTestServer(ctx context.Context) (uint32, <-chan *ReceivedRequest)

func StartSslProxy

func StartSslProxy(ctx context.Context, port uint32) uint32

func TestUpstremReachable

func TestUpstremReachable(envoyPort uint32, tu *TestUpstream, rootca *string)

Types

type ReceivedRequest

type ReceivedRequest struct {
	Method      string
	Body        []byte
	Host        string
	GRPCRequest proto.Message
}

type TestUpstream

type TestUpstream struct {
	Upstream *gloov1.Upstream
	C        <-chan *ReceivedRequest
	Address  string
	Port     uint32
}

func NewTestHttpUpstream

func NewTestHttpUpstream(ctx context.Context, addr string) *TestUpstream

Jump to

Keyboard shortcuts

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