testpeer

package
v0.3.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testpeer supplies real control transports around a scripted executor for integration tests. The scripts choose application responses; negotiation, metadata, admission and transport lifetime remain production implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Control

type Control struct {
	Client *erpc.BidiClient
	// contains filtered or unexported fields
}

Control owns separate loopback direct and reverse listeners and one actual executor client. Startup readiness is deliberately observed by the caller with its separate registration deadline.

func Start

func Start(ctx context.Context, bidi *drpc.BidiServer, service pb.ExecutorServiceServer) (*Control, error)

func (*Control) Stop

func (p *Control) Stop(ctx context.Context) error

Stop retains the real join even when a caller's cleanup deadline expires. A later invocation joins that same shutdown; a timed-out wait is not cleanup.

type ExecutorState

type ExecutorState struct{ Service pb.ExecutorServiceServer }

func (ExecutorState) OnAbort

func (ExecutorState) OnBandwidth

func (ExecutorState) OnHello

func (ExecutorState) OnInspectRetainedRun added in v0.3.0

func (ExecutorState) OnUpload

Jump to

Keyboard shortcuts

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