Categorygithub.com/weathersource/go-gsrv
modulepackage
1.0.3
Repository: https://github.com/weathersource/go-gsrv.git
Documentation: pkg.go.dev

# README

go-gsrv

Build Status Codevov Go Report Card GoDoc

Package gsrv creates a test gRPC server that is useful when mocking a gRPC service.

A complete example of mocking a gRPC service that leverges this package is available.

This package is based on Google's testutil.Server. Original code: https://github.com/GoogleCloudPlatform/google-cloud-go/blob/master/internal/testutil/server.go

# Packages

No description provided by the author

# Functions

NewServer creates a new Server.
NewServerWithPort creates a new Server at a specific port.

# Constants

Closed Server status means the server has been closed.
ClosedWithError Server status means the server was closed because of an error.
Initialized Server status means the server has been created, but not started.
Running Server status means the server has been started.

# Structs

Server is an in-process gRPC server, listening on a system-chosen port on the local loopback interface.