RPC

package
v0.0.0-...-085df72 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FilesInformation_ListFiles_FullMethodName   = "/grpc.FilesInformation/ListFiles"
	FilesInformation_SearchFiles_FullMethodName = "/grpc.FilesInformation/SearchFiles"
)

Variables

View Source
var File_RPC_proto_userinfo_proto protoreflect.FileDescriptor
View Source
var FilesInformation_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "grpc.FilesInformation",
	HandlerType: (*FilesInformationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListFiles",
			Handler:    _FilesInformation_ListFiles_Handler,
		},
		{
			MethodName: "SearchFiles",
			Handler:    _FilesInformation_SearchFiles_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "RPC/proto/userinfo.proto",
}

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

Functions

func RegisterFilesInformationServer

func RegisterFilesInformationServer(s grpc.ServiceRegistrar, srv FilesInformationServer)

Types

type FilesInformationClient

type FilesInformationClient interface {
	ListFiles(ctx context.Context, in *ListFilesRequest, opts ...grpc.CallOption) (*ListFilesResponse, error)
	SearchFiles(ctx context.Context, in *SearchFilesRequest, opts ...grpc.CallOption) (*SearchFilesResponse, error)
}

FilesInformationClient is the client API for FilesInformation 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 FilesInformationServer

type FilesInformationServer interface {
	ListFiles(context.Context, *ListFilesRequest) (*ListFilesResponse, error)
	SearchFiles(context.Context, *SearchFilesRequest) (*SearchFilesResponse, error)
	// contains filtered or unexported methods
}

FilesInformationServer is the server API for FilesInformation service. All implementations must embed UnimplementedFilesInformationServer for forward compatibility

type ListFilesRequest

type ListFilesRequest struct {
	Limit *int32 `protobuf:"varint,1,opt,name=limit,proto3,oneof" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFilesRequest) Descriptor deprecated

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

Deprecated: Use ListFilesRequest.ProtoReflect.Descriptor instead.

func (*ListFilesRequest) GetLimit

func (x *ListFilesRequest) GetLimit() int32

func (*ListFilesRequest) ProtoMessage

func (*ListFilesRequest) ProtoMessage()

func (*ListFilesRequest) ProtoReflect

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

func (*ListFilesRequest) Reset

func (x *ListFilesRequest) Reset()

func (*ListFilesRequest) String

func (x *ListFilesRequest) String() string

type ListFilesResponse

type ListFilesResponse struct {
	FileList string `protobuf:"bytes,1,opt,name=file_list,json=fileList,proto3" json:"file_list,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFilesResponse) Descriptor deprecated

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

Deprecated: Use ListFilesResponse.ProtoReflect.Descriptor instead.

func (*ListFilesResponse) GetFileList

func (x *ListFilesResponse) GetFileList() string

func (*ListFilesResponse) ProtoMessage

func (*ListFilesResponse) ProtoMessage()

func (*ListFilesResponse) ProtoReflect

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

func (*ListFilesResponse) Reset

func (x *ListFilesResponse) Reset()

func (*ListFilesResponse) String

func (x *ListFilesResponse) String() string

type SearchFilesRequest

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

func (*SearchFilesRequest) Descriptor deprecated

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

Deprecated: Use SearchFilesRequest.ProtoReflect.Descriptor instead.

func (*SearchFilesRequest) GetPattern

func (x *SearchFilesRequest) GetPattern() string

func (*SearchFilesRequest) ProtoMessage

func (*SearchFilesRequest) ProtoMessage()

func (*SearchFilesRequest) ProtoReflect

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

func (*SearchFilesRequest) Reset

func (x *SearchFilesRequest) Reset()

func (*SearchFilesRequest) String

func (x *SearchFilesRequest) String() string

type SearchFilesResponse

type SearchFilesResponse struct {
	Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchFilesResponse) Descriptor deprecated

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

Deprecated: Use SearchFilesResponse.ProtoReflect.Descriptor instead.

func (*SearchFilesResponse) GetExists

func (x *SearchFilesResponse) GetExists() bool

func (*SearchFilesResponse) ProtoMessage

func (*SearchFilesResponse) ProtoMessage()

func (*SearchFilesResponse) ProtoReflect

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

func (*SearchFilesResponse) Reset

func (x *SearchFilesResponse) Reset()

func (*SearchFilesResponse) String

func (x *SearchFilesResponse) String() string

type UnimplementedFilesInformationServer

type UnimplementedFilesInformationServer struct {
}

UnimplementedFilesInformationServer must be embedded to have forward compatible implementations.

func (UnimplementedFilesInformationServer) ListFiles

func (UnimplementedFilesInformationServer) SearchFiles

type UnsafeFilesInformationServer

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

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

Jump to

Keyboard shortcuts

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