test

package
v1.2.3-fred.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_teleport_lib_multiplexer_test_ping_proto protoreflect.FileDescriptor
View Source
var Pinger_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "teleport.lib.multiplexer.test.Pinger",
	HandlerType: (*PingerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _Pinger_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "teleport/lib/multiplexer/test/ping.proto",
}

Pinger_ServiceDesc is the grpc.ServiceDesc for Pinger service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPingerServer

func RegisterPingerServer(s grpc.ServiceRegistrar, srv PingerServer)

Types

type PingerClient

type PingerClient interface {
	Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

PingerClient is the client API for Pinger service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPingerClient

func NewPingerClient(cc grpc.ClientConnInterface) PingerClient

type PingerServer

type PingerServer interface {
	Ping(context.Context, *Request) (*Response, error)
	// contains filtered or unexported methods
}

PingerServer is the server API for Pinger service. All implementations must embed UnimplementedPingerServer for forward compatibility

type Request

type Request struct {
	Payload string `protobuf:"bytes,1,opt,name=Payload,proto3" json:"Payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetPayload

func (x *Request) GetPayload() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	Payload string `protobuf:"bytes,1,opt,name=Payload,proto3" json:"Payload,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetPayload

func (x *Response) GetPayload() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedPingerServer

type UnimplementedPingerServer struct {
}

UnimplementedPingerServer must be embedded to have forward compatible implementations.

func (UnimplementedPingerServer) Ping

type UnsafePingerServer

type UnsafePingerServer interface {
	// contains filtered or unexported methods
}

UnsafePingerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PingerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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