Documentation
¶
Index ¶
- Variables
- func RegisterTestKVServiceServer(s grpc.ServiceRegistrar, srv TestKVServiceServer)
- type TestKVServiceClient
- type TestKVServiceServer
- type TestKeyValue
- func (*TestKeyValue) Descriptor() ([]byte, []int)deprecated
- func (x *TestKeyValue) GetKey() string
- func (x *TestKeyValue) GetValue() string
- func (*TestKeyValue) ProtoMessage()
- func (x *TestKeyValue) ProtoReflect() protoreflect.Message
- func (x *TestKeyValue) Reset()
- func (x *TestKeyValue) String() string
- type UnimplementedTestKVServiceServer
- type UnsafeTestKVServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_test_proto protoreflect.FileDescriptor
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.
func NewTestKVServiceClient ¶
func NewTestKVServiceClient(cc grpc.ClientConnInterface) TestKVServiceClient
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 ¶
func (UnimplementedTestKVServiceServer) Get(context.Context, *TestKeyValue) (*TestKeyValue, error)
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.