proto

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_test_proto_test_proto protoreflect.FileDescriptor
View Source
var TestServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "plugins.test.TestServer",
	HandlerType: (*TestServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _TestServer_Ping_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test/proto/test.proto",
}

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

Functions

func RegisterTestServerServer

func RegisterTestServerServer(s grpc.ServiceRegistrar, srv TestServerServer)

Types

type PingRequest

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

func (*PingRequest) Descriptor deprecated

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

Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.

func (*PingRequest) GetId

func (x *PingRequest) GetId() string

func (*PingRequest) ProtoMessage

func (*PingRequest) ProtoMessage()

func (*PingRequest) ProtoReflect

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

func (*PingRequest) Reset

func (x *PingRequest) Reset()

func (*PingRequest) String

func (x *PingRequest) String() string

type PingResponse

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

func (*PingResponse) Descriptor deprecated

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

Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.

func (*PingResponse) GetId

func (x *PingResponse) GetId() string

func (*PingResponse) ProtoMessage

func (*PingResponse) ProtoMessage()

func (*PingResponse) ProtoReflect

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

func (*PingResponse) Reset

func (x *PingResponse) Reset()

func (*PingResponse) String

func (x *PingResponse) String() string

type TestServerClient

type TestServerClient interface {
	Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error)
}

TestServerClient is the client API for TestServer 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 NewTestServerClient

func NewTestServerClient(cc grpc.ClientConnInterface) TestServerClient

type TestServerServer

type TestServerServer interface {
	Ping(context.Context, *PingRequest) (*PingResponse, error)
	// contains filtered or unexported methods
}

TestServerServer is the server API for TestServer service. All implementations must embed UnimplementedTestServerServer for forward compatibility

type UnimplementedTestServerServer

type UnimplementedTestServerServer struct {
}

UnimplementedTestServerServer must be embedded to have forward compatible implementations.

func (UnimplementedTestServerServer) Ping

type UnsafeTestServerServer

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

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

Jump to

Keyboard shortcuts

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