referenceserver

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, args []string, inReader io.ReadCloser, outWriter, errWriter io.WriteCloser) error

Run runs the server according to server config read from the 'in' reader.

func RunInReferenceMode

func RunInReferenceMode(ctx context.Context, args []string, inReader io.ReadCloser, outWriter, errWriter io.WriteCloser, tracer *tracer.Tracer) error

RunInReferenceMode is just like Run except that it performs additional checks that only the conformance reference server runs. These checks do not work if the server is run as a server under test, only when run as a reference server.

Types

type ConformanceRequest

type ConformanceRequest interface {
	GetResponseHeaders() []*conformancev1.Header
	GetResponseTrailers() []*conformancev1.Header
}

ConformanceRequest is a general interface for all conformance requests (UnaryRequest, ServerStreamRequest, etc.)

Jump to

Keyboard shortcuts

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