grpctest

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 13 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) Dial

func (s *Server) Dial(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 OverLocalhostTCP

func OverLocalhostTCP() ServerOption

func OverUDS

func OverUDS() ServerOption

func OverrideContext

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

func StreamServerInterceptor

func StreamServerInterceptor(interceptors ...grpc.StreamServerInterceptor) ServerOption

func UnaryServerInterceptor

func UnaryServerInterceptor(interceptors ...grpc.UnaryServerInterceptor) ServerOption

Jump to

Keyboard shortcuts

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