reflectPb

package
v0.0.0-...-63ab2dd Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DemoService_GetScheme_FullMethodName  = "/reflectPb.DemoService/GetScheme"
	DemoService_DoneStream_FullMethodName = "/reflectPb.DemoService/DoneStream"
)

Variables

View Source
var DemoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "reflectPb.DemoService",
	HandlerType: (*DemoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetScheme",
			Handler:    _DemoService_GetScheme_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "DoneStream",
			Handler:       _DemoService_DoneStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "reflectPb.proto",
}

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

View Source
var File_reflectPb_proto protoreflect.FileDescriptor

Functions

func RegisterDemoServiceServer

func RegisterDemoServiceServer(s grpc.ServiceRegistrar, srv DemoServiceServer)

Types

type DemoServiceClient

type DemoServiceClient interface {
	// demo
	GetScheme(ctx context.Context, in *GetSchemeReq, opts ...grpc.CallOption) (*GetSchemeResp, error)
	// stream
	DoneStream(ctx context.Context, opts ...grpc.CallOption) (DemoService_DoneStreamClient, error)
}

DemoServiceClient is the client API for DemoService 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 DemoServiceServer

type DemoServiceServer interface {
	// demo
	GetScheme(context.Context, *GetSchemeReq) (*GetSchemeResp, error)
	// stream
	DoneStream(DemoService_DoneStreamServer) error
	// contains filtered or unexported methods
}

DemoServiceServer is the server API for DemoService service. All implementations must embed UnimplementedDemoServiceServer for forward compatibility

type DemoService_DoneStreamClient

type DemoService_DoneStreamClient interface {
	Send(*DoneStreamReq) error
	Recv() (*DoneStreamResp, error)
	grpc.ClientStream
}

type DemoService_DoneStreamServer

type DemoService_DoneStreamServer interface {
	Send(*DoneStreamResp) error
	Recv() (*DoneStreamReq, error)
	grpc.ServerStream
}

type DoneStreamReq

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

func (*DoneStreamReq) Descriptor deprecated

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

Deprecated: Use DoneStreamReq.ProtoReflect.Descriptor instead.

func (*DoneStreamReq) GetData

func (x *DoneStreamReq) GetData() string

func (*DoneStreamReq) ProtoMessage

func (*DoneStreamReq) ProtoMessage()

func (*DoneStreamReq) ProtoReflect

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

func (*DoneStreamReq) Reset

func (x *DoneStreamReq) Reset()

func (*DoneStreamReq) String

func (x *DoneStreamReq) String() string

type DoneStreamResp

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

func (*DoneStreamResp) Descriptor deprecated

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

Deprecated: Use DoneStreamResp.ProtoReflect.Descriptor instead.

func (*DoneStreamResp) GetMsg

func (x *DoneStreamResp) GetMsg() string

func (*DoneStreamResp) ProtoMessage

func (*DoneStreamResp) ProtoMessage()

func (*DoneStreamResp) ProtoReflect

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

func (*DoneStreamResp) Reset

func (x *DoneStreamResp) Reset()

func (*DoneStreamResp) String

func (x *DoneStreamResp) String() string

type GetSchemeReq

type GetSchemeReq struct {
	Path string             `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Info *GetSchemeRespInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSchemeReq) Descriptor deprecated

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

Deprecated: Use GetSchemeReq.ProtoReflect.Descriptor instead.

func (*GetSchemeReq) GetInfo

func (x *GetSchemeReq) GetInfo() *GetSchemeRespInfo

func (*GetSchemeReq) GetPath

func (x *GetSchemeReq) GetPath() string

func (*GetSchemeReq) ProtoMessage

func (*GetSchemeReq) ProtoMessage()

func (*GetSchemeReq) ProtoReflect

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

func (*GetSchemeReq) Reset

func (x *GetSchemeReq) Reset()

func (*GetSchemeReq) String

func (x *GetSchemeReq) String() string

type GetSchemeResp

type GetSchemeResp struct {
	Data string             `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	Info *GetSchemeRespInfo `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSchemeResp) Descriptor deprecated

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

Deprecated: Use GetSchemeResp.ProtoReflect.Descriptor instead.

func (*GetSchemeResp) GetData

func (x *GetSchemeResp) GetData() string

func (*GetSchemeResp) GetInfo

func (x *GetSchemeResp) GetInfo() *GetSchemeRespInfo

func (*GetSchemeResp) ProtoMessage

func (*GetSchemeResp) ProtoMessage()

func (*GetSchemeResp) ProtoReflect

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

func (*GetSchemeResp) Reset

func (x *GetSchemeResp) Reset()

func (*GetSchemeResp) String

func (x *GetSchemeResp) String() string

type GetSchemeRespInfo

type GetSchemeRespInfo struct {
	Info string `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSchemeRespInfo) Descriptor deprecated

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

Deprecated: Use GetSchemeRespInfo.ProtoReflect.Descriptor instead.

func (*GetSchemeRespInfo) GetInfo

func (x *GetSchemeRespInfo) GetInfo() string

func (*GetSchemeRespInfo) GetName

func (x *GetSchemeRespInfo) GetName() string

func (*GetSchemeRespInfo) ProtoMessage

func (*GetSchemeRespInfo) ProtoMessage()

func (*GetSchemeRespInfo) ProtoReflect

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

func (*GetSchemeRespInfo) Reset

func (x *GetSchemeRespInfo) Reset()

func (*GetSchemeRespInfo) String

func (x *GetSchemeRespInfo) String() string

type UnimplementedDemoServiceServer

type UnimplementedDemoServiceServer struct {
}

UnimplementedDemoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDemoServiceServer) DoneStream

func (UnimplementedDemoServiceServer) GetScheme

type UnsafeDemoServiceServer

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

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

Jump to

Keyboard shortcuts

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