test

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(interceptor grpc.UnaryServerInterceptor)

Types

type TestClient

type TestClient struct {
	ExampleReq        *pb.TestMessage
	ExampleInvalidReq *pb.TestMessage
	pb.TestServiceClient
}

func GetClient

func GetClient() *TestClient

func (*TestClient) SendErr

func (c *TestClient) SendErr() (*pb.TestMessage, error)

func (*TestClient) SendReq

func (c *TestClient) SendReq() (*pb.TestMessage, error)

type TestServer

type TestServer struct{}

func (*TestServer) TestUnary

func (s *TestServer) TestUnary(ctx context.Context, t *pb.TestMessage) (*pb.TestMessage, error)

Jump to

Keyboard shortcuts

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