fakegrpc

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package fakegrpc provides a fake gRPC client/server for testing purpose.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fake

type Fake struct {
	Listener net.Listener
	Server   *grpc.Server
	Client   *grpc.ClientConn
}

Fake contains the server and client for a GRPC connection.

func New

func New() (*Fake, func() error)

New creates a gRPC client and server connected to eachother.

func (*Fake) Start

func (f *Fake) Start()

Start starts the server. Must be called after registering the services on the server.

Jump to

Keyboard shortcuts

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