Documentation

Overview

    Package grpctest provides a test server for unit tests that use gRPC.

    Example
    Output:
    
    

    Index

    Examples

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func StartServer

    func StartServer(server *grpc.Server) (addr string, stop func(), err error)

      StartServer instantiates a gRPC server suitable for unit tests, and returns the server address the client can use to connect and a stop function that must be called if err is nil to stop the server and cleanup resources.

      Types

      This section is empty.

      Source Files