mock

package
v0.0.0-...-55327a3 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TestSvrListen = ":54321"
View Source
const TestSvrName = "test"

Variables

This section is empty.

Functions

func NewMicroServer

func NewMicroServer(listen string) error

func NewMockDiscoveryServer

func NewMockDiscoveryServer(listen string, nodeId string) error

Types

type Hello

type Hello struct {
	// contains filtered or unexported fields
}

grpc server

func (*Hello) Hello

func (t *Hello) Hello(ctx context.Context, req *prototest.Request) (*prototest.Response, error)

func (*Hello) HelloError

func (t *Hello) HelloError(ctx context.Context, req *prototest.Request) (*prototest.Response, error)

func (*Hello) HelloPanic

func (t *Hello) HelloPanic(ctx context.Context, req *prototest.Request) (*prototest.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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