test

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_test_echo_proto protoreflect.FileDescriptor
View Source
var File_test_somehostservice_proto protoreflect.FileDescriptor
View Source
var File_test_someplugin_proto protoreflect.FileDescriptor
View Source
var File_test_someservice_proto protoreflect.FileDescriptor
View Source
var SomeHostService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "test.SomeHostService",
	HandlerType: (*SomeHostServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "HostServiceEcho",
			Handler:    _SomeHostService_HostServiceEcho_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test/somehostservice.proto",
}

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

View Source
var SomePlugin_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "test.SomePlugin",
	HandlerType: (*SomePluginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PluginEcho",
			Handler:    _SomePlugin_PluginEcho_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test/someplugin.proto",
}

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

View Source
var SomeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "test.SomeService",
	HandlerType: (*SomeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ServiceEcho",
			Handler:    _SomeService_ServiceEcho_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test/someservice.proto",
}

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

Functions

func RegisterSomeHostServiceServer

func RegisterSomeHostServiceServer(s grpc.ServiceRegistrar, srv SomeHostServiceServer)

func RegisterSomePluginServer

func RegisterSomePluginServer(s grpc.ServiceRegistrar, srv SomePluginServer)

func RegisterSomeServiceServer

func RegisterSomeServiceServer(s grpc.ServiceRegistrar, srv SomeServiceServer)

func SomeHostServiceServiceServer

func SomeHostServiceServiceServer(server SomeHostServiceServer) pluginsdk.ServiceServer

func SomePluginPluginServer

func SomePluginPluginServer(server SomePluginServer) pluginsdk.PluginServer

func SomeServiceServiceServer

func SomeServiceServiceServer(server SomeServiceServer) pluginsdk.ServiceServer

Types

type EchoRequest

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

func (*EchoRequest) Descriptor deprecated

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

Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.

func (*EchoRequest) GetIn

func (x *EchoRequest) GetIn() string

func (*EchoRequest) ProtoMessage

func (*EchoRequest) ProtoMessage()

func (*EchoRequest) ProtoReflect

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

func (*EchoRequest) Reset

func (x *EchoRequest) Reset()

func (*EchoRequest) String

func (x *EchoRequest) String() string

type EchoResponse

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

func (*EchoResponse) Descriptor deprecated

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

Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.

func (*EchoResponse) GetOut

func (x *EchoResponse) GetOut() string

func (*EchoResponse) ProtoMessage

func (*EchoResponse) ProtoMessage()

func (*EchoResponse) ProtoReflect

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

func (*EchoResponse) Reset

func (x *EchoResponse) Reset()

func (*EchoResponse) String

func (x *EchoResponse) String() string

type SomeHostServiceClient

type SomeHostServiceClient interface {
	HostServiceEcho(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
}

SomeHostServiceClient is the client API for SomeHostService 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.

type SomeHostServiceServer

type SomeHostServiceServer interface {
	HostServiceEcho(context.Context, *EchoRequest) (*EchoResponse, error)
	// contains filtered or unexported methods
}

SomeHostServiceServer is the server API for SomeHostService service. All implementations must embed UnimplementedSomeHostServiceServer for forward compatibility

type SomeHostServiceServiceClient

type SomeHostServiceServiceClient struct {
	SomeHostServiceClient
}

func (*SomeHostServiceServiceClient) GRPCServiceName

func (c *SomeHostServiceServiceClient) GRPCServiceName() string

func (*SomeHostServiceServiceClient) InitClient

func (c *SomeHostServiceServiceClient) InitClient(conn grpc.ClientConnInterface) interface{}

func (*SomeHostServiceServiceClient) IsInitialized

func (c *SomeHostServiceServiceClient) IsInitialized() bool

type SomePluginClient

type SomePluginClient interface {
	PluginEcho(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
}

SomePluginClient is the client API for SomePlugin 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 NewSomePluginClient

func NewSomePluginClient(cc grpc.ClientConnInterface) SomePluginClient

type SomePluginPluginClient

type SomePluginPluginClient struct {
	SomePluginClient
}

func (*SomePluginPluginClient) GRPCServiceName

func (c *SomePluginPluginClient) GRPCServiceName() string

func (*SomePluginPluginClient) InitClient

func (c *SomePluginPluginClient) InitClient(conn grpc.ClientConnInterface) interface{}

func (*SomePluginPluginClient) IsInitialized

func (c *SomePluginPluginClient) IsInitialized() bool

func (SomePluginPluginClient) Type

func (s SomePluginPluginClient) Type() string

type SomePluginServer

type SomePluginServer interface {
	PluginEcho(context.Context, *EchoRequest) (*EchoResponse, error)
	// contains filtered or unexported methods
}

SomePluginServer is the server API for SomePlugin service. All implementations must embed UnimplementedSomePluginServer for forward compatibility

type SomeServiceClient

type SomeServiceClient interface {
	ServiceEcho(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error)
}

SomeServiceClient is the client API for SomeService 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.

type SomeServiceServer

type SomeServiceServer interface {
	ServiceEcho(context.Context, *EchoRequest) (*EchoResponse, error)
	// contains filtered or unexported methods
}

SomeServiceServer is the server API for SomeService service. All implementations must embed UnimplementedSomeServiceServer for forward compatibility

type SomeServiceServiceClient

type SomeServiceServiceClient struct {
	SomeServiceClient
}

func (*SomeServiceServiceClient) GRPCServiceName

func (c *SomeServiceServiceClient) GRPCServiceName() string

func (*SomeServiceServiceClient) InitClient

func (c *SomeServiceServiceClient) InitClient(conn grpc.ClientConnInterface) interface{}

func (*SomeServiceServiceClient) IsInitialized

func (c *SomeServiceServiceClient) IsInitialized() bool

type UnimplementedSomeHostServiceServer

type UnimplementedSomeHostServiceServer struct {
}

UnimplementedSomeHostServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSomeHostServiceServer) HostServiceEcho

type UnimplementedSomePluginServer

type UnimplementedSomePluginServer struct {
}

UnimplementedSomePluginServer must be embedded to have forward compatible implementations.

func (UnimplementedSomePluginServer) PluginEcho

type UnimplementedSomeServiceServer

type UnimplementedSomeServiceServer struct {
}

UnimplementedSomeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSomeServiceServer) ServiceEcho

type UnsafeSomeHostServiceServer

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

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

type UnsafeSomePluginServer

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

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

type UnsafeSomeServiceServer

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

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

Jump to

Keyboard shortcuts

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