mock

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenMockServer

func ListenMockServer(mockServer pb.StreamServiceServer, ipAddress string) (*grpc.Server, net.Listener)

Types

type MockServerHandler

type MockServerHandler func(stream pb.StreamService_StreamServer, envelope *pb.Envelope)

type Mockserver

type Mockserver struct {
	Handler MockServerHandler
}

func (*Mockserver) Ping

func (s *Mockserver) Ping(ctx context.Context, in *pb.Empty) (*pb.Empty, error)

func (*Mockserver) Stream

func (s *Mockserver) Stream(stream pb.StreamService_StreamServer) error

Jump to

Keyboard shortcuts

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