grpctest

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2019 License: MIT Imports: 4 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 {
	*grpc.Server
	Ctx  context.Context
	Conn *grpc.ClientConn
	// contains filtered or unexported fields
}

Server is a local gRPC server for use within tests.

func NewServer

func NewServer(ctx context.Context) Server

NewServer returns a gRPC Server of the provided JournalServer.

func (Server) Endpoint

func (s Server) Endpoint() pb.Endpoint

Endpoint of the Server.

func (Server) Serve

func (s Server) Serve()

Serve the test gRPC Server, blocking until its Context is cancelled.

Jump to

Keyboard shortcuts

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