grpctest

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

func StartServer

func StartServer(tb testing.TB, registerFn func(s grpc.ServiceRegistrar), opts ...ServerOption) *Server

func (*Server) NewGRPCClient added in v1.11.2

func (s *Server) NewGRPCClient(tb testing.TB, extraOptions ...grpc.DialOption) grpc.ClientConnInterface

func (*Server) Stop

func (s *Server) Stop()

type ServerOption

type ServerOption = func(*serverConfig)

func Middleware

func Middleware(ms ...middleware.Middleware) ServerOption

func OverUDS

func OverUDS() ServerOption

func OverrideContext

func OverrideContext(fn func(context.Context) context.Context) ServerOption

Jump to

Keyboard shortcuts

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