protogen

package
v0.0.0-...-3a41573 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_test_proto protoreflect.FileDescriptor
View Source
var TestKVService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protogen.TestKVService",
	HandlerType: (*TestKVServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _TestKVService_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/test.proto",
}

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

Functions

func RegisterTestKVServiceServer

func RegisterTestKVServiceServer(s grpc.ServiceRegistrar, srv TestKVServiceServer)

Types

type TestKVServiceClient

type TestKVServiceClient interface {
	Get(ctx context.Context, in *TestKeyValue, opts ...grpc.CallOption) (*TestKeyValue, error)
}

TestKVServiceClient is the client API for TestKVService 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 TestKVServiceServer

type TestKVServiceServer interface {
	Get(context.Context, *TestKeyValue) (*TestKeyValue, error)
	// contains filtered or unexported methods
}

TestKVServiceServer is the server API for TestKVService service. All implementations must embed UnimplementedTestKVServiceServer for forward compatibility

type TestKeyValue

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

func (*TestKeyValue) Descriptor deprecated

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

Deprecated: Use TestKeyValue.ProtoReflect.Descriptor instead.

func (*TestKeyValue) GetKey

func (x *TestKeyValue) GetKey() string

func (*TestKeyValue) GetValue

func (x *TestKeyValue) GetValue() string

func (*TestKeyValue) ProtoMessage

func (*TestKeyValue) ProtoMessage()

func (*TestKeyValue) ProtoReflect

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

func (*TestKeyValue) Reset

func (x *TestKeyValue) Reset()

func (*TestKeyValue) String

func (x *TestKeyValue) String() string

type UnimplementedTestKVServiceServer

type UnimplementedTestKVServiceServer struct {
}

UnimplementedTestKVServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTestKVServiceServer) Get

type UnsafeTestKVServiceServer

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

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

Jump to

Keyboard shortcuts

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