grpctest

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(init func(*grpc.Server)) (*grpc.Server, func() *grpc.ClientConn)

NewServer returns a *grpc.Server and a dialer for that server. The server s is started with s.Serve using a *bufconn.Listener. If init is non-nil, it is called with the *grpc.Server before calling s.Serve.

_, dial := NewServer(func(s *grpc.Server) {
	proto.RegisterFooServer(s, ...)
})
conn := dial()
defer conn.Close()

Types

This section is empty.

Jump to

Keyboard shortcuts

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