grpc

package
v1.4.6-beta Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interceptor

type Interceptor struct {
	// contains filtered or unexported fields
}

Interceptor is a mock gRPC server that serves responses from the registry. It speaks HTTP/2 cleartext (h2c) and encodes payloads as application/grpc+json. Only unary RPCs are supported.

func NewInterceptor

func NewInterceptor(addr string, reg *registry.MockRegistry) *Interceptor

NewInterceptor creates a new gRPC interceptor listening on addr.

func (*Interceptor) Start

func (i *Interceptor) Start(ctx context.Context) error

Start begins listening for gRPC connections. It blocks until ctx is cancelled.

Jump to

Keyboard shortcuts

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