testproto

package
v0.0.0-...-6cad993 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestService_GetSomething_FullMethodName = "/testproto.TestService/GetSomething"
)

Variables

View Source
var TestService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "testproto.TestService",
	HandlerType: (*TestServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSomething",
			Handler:    _TestService_GetSomething_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "test.proto",
}

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

Functions

func RegisterTestServiceServer

func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)

Types

type GetSomethingRequest

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

func (*GetSomethingRequest) Descriptor deprecated

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

Deprecated: Use GetSomethingRequest.ProtoReflect.Descriptor instead.

func (*GetSomethingRequest) GetSomethingId

func (x *GetSomethingRequest) GetSomethingId() string

func (*GetSomethingRequest) ProtoMessage

func (*GetSomethingRequest) ProtoMessage()

func (*GetSomethingRequest) ProtoReflect

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

func (*GetSomethingRequest) Reset

func (x *GetSomethingRequest) Reset()

func (*GetSomethingRequest) String

func (x *GetSomethingRequest) String() string

type GetSomethingResponse

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

func (*GetSomethingResponse) Descriptor deprecated

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

Deprecated: Use GetSomethingResponse.ProtoReflect.Descriptor instead.

func (*GetSomethingResponse) GetSomethingContents

func (x *GetSomethingResponse) GetSomethingContents() string

func (*GetSomethingResponse) ProtoMessage

func (*GetSomethingResponse) ProtoMessage()

func (*GetSomethingResponse) ProtoReflect

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

func (*GetSomethingResponse) Reset

func (x *GetSomethingResponse) Reset()

func (*GetSomethingResponse) String

func (x *GetSomethingResponse) String() string

type TestServiceClient

type TestServiceClient interface {
	GetSomething(ctx context.Context, in *GetSomethingRequest, opts ...grpc.CallOption) (*GetSomethingResponse, error)
}

TestServiceClient is the client API for TestService 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 TestServiceServer

type TestServiceServer interface {
	GetSomething(context.Context, *GetSomethingRequest) (*GetSomethingResponse, error)
	// contains filtered or unexported methods
}

TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility

type UnimplementedTestServiceServer

type UnimplementedTestServiceServer struct {
}

UnimplementedTestServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTestServiceServer) GetSomething

type UnsafeTestServiceServer

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

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

Jump to

Keyboard shortcuts

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