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"
)

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{},
	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)
}

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)
	// contains filtered or unexported methods
}

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

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) 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