protogen

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_grpeakec_proto_pktesting_mock_service_proto protoreflect.FileDescriptor

Functions

func RegisterMockStreamServiceServer

func RegisterMockStreamServiceServer(s *grpc.Server, srv MockStreamServiceServer)

func RegisterMockStreamUnaryServiceServer

func RegisterMockStreamUnaryServiceServer(s *grpc.Server, srv MockStreamUnaryServiceServer)

func RegisterMockUnaryServiceServer

func RegisterMockUnaryServiceServer(s *grpc.Server, srv MockUnaryServiceServer)

func RegisterMockUnaryStreamServiceServer

func RegisterMockUnaryStreamServiceServer(s *grpc.Server, srv MockUnaryStreamServiceServer)

Types

type MockStreamServiceClient

type MockStreamServiceClient interface {
	// Stream streams any messages bi-directionally.
	Stream(ctx context.Context, opts ...grpc.CallOption) (MockStreamService_StreamClient, error)
	// DummyStream streams emtpy messages bi-directionally
	DummyStream(ctx context.Context, opts ...grpc.CallOption) (MockStreamService_DummyStreamClient, error)
}

MockStreamServiceClient is the client API for MockStreamService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MockStreamServiceServer

type MockStreamServiceServer interface {
	// Stream streams any messages bi-directionally.
	Stream(MockStreamService_StreamServer) error
	// DummyStream streams emtpy messages bi-directionally
	DummyStream(MockStreamService_DummyStreamServer) error
}

MockStreamServiceServer is the server API for MockStreamService service.

type MockStreamService_DummyStreamClient

type MockStreamService_DummyStreamClient interface {
	Send(*empty.Empty) error
	Recv() (*empty.Empty, error)
	grpc.ClientStream
}

type MockStreamService_DummyStreamServer

type MockStreamService_DummyStreamServer interface {
	Send(*empty.Empty) error
	Recv() (*empty.Empty, error)
	grpc.ServerStream
}

type MockStreamService_StreamClient

type MockStreamService_StreamClient interface {
	Send(*any.Any) error
	Recv() (*any.Any, error)
	grpc.ClientStream
}

type MockStreamService_StreamServer

type MockStreamService_StreamServer interface {
	Send(*any.Any) error
	Recv() (*any.Any, error)
	grpc.ServerStream
}

type MockStreamUnaryServiceClient

type MockStreamUnaryServiceClient interface {
	// StreamUnary streams Any messages as a request and receives a single Any response.
	StreamUnary(ctx context.Context, opts ...grpc.CallOption) (MockStreamUnaryService_StreamUnaryClient, error)
	// DummyStreamUnary streams emtpy request messages and receives a single Empty
	// response.
	DummyStreamUnary(ctx context.Context, opts ...grpc.CallOption) (MockStreamUnaryService_DummyStreamUnaryClient, error)
}

MockStreamUnaryServiceClient is the client API for MockStreamUnaryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MockStreamUnaryServiceServer

type MockStreamUnaryServiceServer interface {
	// StreamUnary streams Any messages as a request and receives a single Any response.
	StreamUnary(MockStreamUnaryService_StreamUnaryServer) error
	// DummyStreamUnary streams emtpy request messages and receives a single Empty
	// response.
	DummyStreamUnary(MockStreamUnaryService_DummyStreamUnaryServer) error
}

MockStreamUnaryServiceServer is the server API for MockStreamUnaryService service.

type MockStreamUnaryService_DummyStreamUnaryClient

type MockStreamUnaryService_DummyStreamUnaryClient interface {
	Send(*empty.Empty) error
	CloseAndRecv() (*empty.Empty, error)
	grpc.ClientStream
}

type MockStreamUnaryService_DummyStreamUnaryServer

type MockStreamUnaryService_DummyStreamUnaryServer interface {
	SendAndClose(*empty.Empty) error
	Recv() (*empty.Empty, error)
	grpc.ServerStream
}

type MockStreamUnaryService_StreamUnaryClient

type MockStreamUnaryService_StreamUnaryClient interface {
	Send(*any.Any) error
	CloseAndRecv() (*any.Any, error)
	grpc.ClientStream
}

type MockStreamUnaryService_StreamUnaryServer

type MockStreamUnaryService_StreamUnaryServer interface {
	SendAndClose(*any.Any) error
	Recv() (*any.Any, error)
	grpc.ServerStream
}

type MockUnaryServiceClient

type MockUnaryServiceClient interface {
	// Unary takes in an Any request and returns an Any message.
	Unary(ctx context.Context, in *any.Any, opts ...grpc.CallOption) (*any.Any, error)
	// Dummy sends an empty request and gets an empty response.
	Dummy(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}

MockUnaryServiceClient is the client API for MockUnaryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MockUnaryServiceServer

type MockUnaryServiceServer interface {
	// Unary takes in an Any request and returns an Any message.
	Unary(context.Context, *any.Any) (*any.Any, error)
	// Dummy sends an empty request and gets an empty response.
	Dummy(context.Context, *empty.Empty) (*empty.Empty, error)
}

MockUnaryServiceServer is the server API for MockUnaryService service.

type MockUnaryStreamServiceClient

type MockUnaryStreamServiceClient interface {
	// UnaryStream send a unary Any request and receives an Any response stream.
	UnaryStream(ctx context.Context, in *any.Any, opts ...grpc.CallOption) (MockUnaryStreamService_UnaryStreamClient, error)
	// DummyStream streams emtpy messages bi-directionally
	DummyUnaryStream(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (MockUnaryStreamService_DummyUnaryStreamClient, error)
}

MockUnaryStreamServiceClient is the client API for MockUnaryStreamService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type MockUnaryStreamServiceServer

type MockUnaryStreamServiceServer interface {
	// UnaryStream send a unary Any request and receives an Any response stream.
	UnaryStream(*any.Any, MockUnaryStreamService_UnaryStreamServer) error
	// DummyStream streams emtpy messages bi-directionally
	DummyUnaryStream(*empty.Empty, MockUnaryStreamService_DummyUnaryStreamServer) error
}

MockUnaryStreamServiceServer is the server API for MockUnaryStreamService service.

type MockUnaryStreamService_DummyUnaryStreamClient

type MockUnaryStreamService_DummyUnaryStreamClient interface {
	Recv() (*empty.Empty, error)
	grpc.ClientStream
}

type MockUnaryStreamService_DummyUnaryStreamServer

type MockUnaryStreamService_DummyUnaryStreamServer interface {
	Send(*empty.Empty) error
	grpc.ServerStream
}

type MockUnaryStreamService_UnaryStreamClient

type MockUnaryStreamService_UnaryStreamClient interface {
	Recv() (*any.Any, error)
	grpc.ClientStream
}

type MockUnaryStreamService_UnaryStreamServer

type MockUnaryStreamService_UnaryStreamServer interface {
	Send(*any.Any) error
	grpc.ServerStream
}

type UnimplementedMockStreamServiceServer

type UnimplementedMockStreamServiceServer struct {
}

UnimplementedMockStreamServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMockStreamServiceServer) DummyStream

func (*UnimplementedMockStreamServiceServer) Stream

type UnimplementedMockStreamUnaryServiceServer

type UnimplementedMockStreamUnaryServiceServer struct {
}

UnimplementedMockStreamUnaryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMockStreamUnaryServiceServer) DummyStreamUnary

func (*UnimplementedMockStreamUnaryServiceServer) StreamUnary

type UnimplementedMockUnaryServiceServer

type UnimplementedMockUnaryServiceServer struct {
}

UnimplementedMockUnaryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMockUnaryServiceServer) Dummy

func (*UnimplementedMockUnaryServiceServer) Unary

type UnimplementedMockUnaryStreamServiceServer

type UnimplementedMockUnaryStreamServiceServer struct {
}

UnimplementedMockUnaryStreamServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMockUnaryStreamServiceServer) DummyUnaryStream

func (*UnimplementedMockUnaryStreamServiceServer) UnaryStream

Jump to

Keyboard shortcuts

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