referenceserver

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 29 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) 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() []*v1.Header
	GetResponseTrailers() []*v1.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