Documentation ¶
Index ¶
- Variables
- func RegisterDummyServer(s grpc.ServiceRegistrar, srv DummyServer)
- type BaseMessage
- type DummyClient
- type DummyServer
- type ExtensionMessage
- type ExtensionMessage_NestedExtension
- func (*ExtensionMessage_NestedExtension) Descriptor() ([]byte, []int)deprecated
- func (x *ExtensionMessage_NestedExtension) GetNef1() string
- func (*ExtensionMessage_NestedExtension) ProtoMessage()
- func (x *ExtensionMessage_NestedExtension) ProtoReflect() protoreflect.Message
- func (x *ExtensionMessage_NestedExtension) Reset()
- func (x *ExtensionMessage_NestedExtension) String() string
- type UnimplementedDummyServer
- type UnsafeDummyServer
Constants ¶
This section is empty.
Variables ¶
var ( // optional string ef1 = 1000; E_Ef1 = &file_regtest_regtest_proto_extTypes[0] // optional regtest.ExtensionMessage ef2 = 1001; E_ExtensionMessage_Ef2 = &file_regtest_regtest_proto_extTypes[2] // optional string ef3 = 1002; E_ExtensionMessage_NestedExtension_Ef3 = &file_regtest_regtest_proto_extTypes[3] )
Extension fields to BaseMessage.
var Dummy_ServiceDesc = grpc.ServiceDesc{ ServiceName: "regtest.Dummy", HandlerType: (*DummyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Dummy", Handler: _Dummy_Dummy_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "regtest/regtest.proto", }
Dummy_ServiceDesc is the grpc.ServiceDesc for Dummy service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var (
// optional regtest.BaseMessage base = 56789;
E_Base = &file_regtest_regtest_proto_extTypes[1]
)
Extension fields to descriptorpb.MethodOptions.
var File_regtest_regtest_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDummyServer ¶
func RegisterDummyServer(s grpc.ServiceRegistrar, srv DummyServer)
Types ¶
type BaseMessage ¶
type BaseMessage struct { Bf1 *string `protobuf:"bytes,1,opt,name=bf1" json:"bf1,omitempty"` // contains filtered or unexported fields }
A base message to be extended
func (*BaseMessage) Descriptor
deprecated
func (*BaseMessage) Descriptor() ([]byte, []int)
Deprecated: Use BaseMessage.ProtoReflect.Descriptor instead.
func (*BaseMessage) GetBf1 ¶
func (x *BaseMessage) GetBf1() string
func (*BaseMessage) ProtoMessage ¶
func (*BaseMessage) ProtoMessage()
func (*BaseMessage) ProtoReflect ¶
func (x *BaseMessage) ProtoReflect() protoreflect.Message
func (*BaseMessage) Reset ¶
func (x *BaseMessage) Reset()
func (*BaseMessage) String ¶
func (x *BaseMessage) String() string
type DummyClient ¶
type DummyClient interface {
Dummy(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error)
}
DummyClient is the client API for Dummy 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 NewDummyClient ¶
func NewDummyClient(cc grpc.ClientConnInterface) DummyClient
type DummyServer ¶
type DummyServer interface { Dummy(context.Context, *emptypb.Empty) (*emptypb.Empty, error) // contains filtered or unexported methods }
DummyServer is the server API for Dummy service. All implementations must embed UnimplementedDummyServer for forward compatibility
type ExtensionMessage ¶
type ExtensionMessage struct { Emf1 *string `protobuf:"bytes,1,opt,name=emf1" json:"emf1,omitempty"` // contains filtered or unexported fields }
A message scope for more extensions
func (*ExtensionMessage) Descriptor
deprecated
func (*ExtensionMessage) Descriptor() ([]byte, []int)
Deprecated: Use ExtensionMessage.ProtoReflect.Descriptor instead.
func (*ExtensionMessage) GetEmf1 ¶
func (x *ExtensionMessage) GetEmf1() string
func (*ExtensionMessage) ProtoMessage ¶
func (*ExtensionMessage) ProtoMessage()
func (*ExtensionMessage) ProtoReflect ¶
func (x *ExtensionMessage) ProtoReflect() protoreflect.Message
func (*ExtensionMessage) Reset ¶
func (x *ExtensionMessage) Reset()
func (*ExtensionMessage) String ¶
func (x *ExtensionMessage) String() string
type ExtensionMessage_NestedExtension ¶
type ExtensionMessage_NestedExtension struct { Nef1 *string `protobuf:"bytes,1,opt,name=nef1" json:"nef1,omitempty"` // contains filtered or unexported fields }
func (*ExtensionMessage_NestedExtension) Descriptor
deprecated
func (*ExtensionMessage_NestedExtension) Descriptor() ([]byte, []int)
Deprecated: Use ExtensionMessage_NestedExtension.ProtoReflect.Descriptor instead.
func (*ExtensionMessage_NestedExtension) GetNef1 ¶
func (x *ExtensionMessage_NestedExtension) GetNef1() string
func (*ExtensionMessage_NestedExtension) ProtoMessage ¶
func (*ExtensionMessage_NestedExtension) ProtoMessage()
func (*ExtensionMessage_NestedExtension) ProtoReflect ¶
func (x *ExtensionMessage_NestedExtension) ProtoReflect() protoreflect.Message
func (*ExtensionMessage_NestedExtension) Reset ¶
func (x *ExtensionMessage_NestedExtension) Reset()
func (*ExtensionMessage_NestedExtension) String ¶
func (x *ExtensionMessage_NestedExtension) String() string
type UnimplementedDummyServer ¶
type UnimplementedDummyServer struct { }
UnimplementedDummyServer must be embedded to have forward compatible implementations.
type UnsafeDummyServer ¶
type UnsafeDummyServer interface {
// contains filtered or unexported methods
}
UnsafeDummyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DummyServer will result in compilation errors.