Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEsServer(s grpc.ServiceRegistrar, srv EsServer)
- type EsClient
- type EsServer
- type File
- type InsertFileReq
- func (*InsertFileReq) Descriptor() ([]byte, []int)deprecated
- func (x *InsertFileReq) GetFile() *File
- func (x *InsertFileReq) GetTypeMount() string
- func (x *InsertFileReq) GetUserId() int64
- func (*InsertFileReq) ProtoMessage()
- func (x *InsertFileReq) ProtoReflect() protoreflect.Message
- func (x *InsertFileReq) Reset()
- func (x *InsertFileReq) String() string
- type InsertFileResp
- type InsertPostReq
- func (*InsertPostReq) Descriptor() ([]byte, []int)deprecated
- func (x *InsertPostReq) GetPost() *Post
- func (x *InsertPostReq) GetTypeMount() string
- func (x *InsertPostReq) GetUserId() int64
- func (*InsertPostReq) ProtoMessage()
- func (x *InsertPostReq) ProtoReflect() protoreflect.Message
- func (x *InsertPostReq) Reset()
- func (x *InsertPostReq) String() string
- type InsertPostResp
- type Post
- type SearchForFileRankReq
- func (*SearchForFileRankReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForFileRankReq) GetRank() int64
- func (x *SearchForFileRankReq) GetTypeMount() string
- func (*SearchForFileRankReq) ProtoMessage()
- func (x *SearchForFileRankReq) ProtoReflect() protoreflect.Message
- func (x *SearchForFileRankReq) Reset()
- func (x *SearchForFileRankReq) String() string
- type SearchForFileRankResp
- func (*SearchForFileRankResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForFileRankResp) GetError() string
- func (x *SearchForFileRankResp) GetFiles() []*File
- func (*SearchForFileRankResp) ProtoMessage()
- func (x *SearchForFileRankResp) ProtoReflect() protoreflect.Message
- func (x *SearchForFileRankResp) Reset()
- func (x *SearchForFileRankResp) String() string
- type SearchForFilesByUserIdReq
- func (*SearchForFilesByUserIdReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForFilesByUserIdReq) GetTypeMount() string
- func (x *SearchForFilesByUserIdReq) GetUserId() int64
- func (*SearchForFilesByUserIdReq) ProtoMessage()
- func (x *SearchForFilesByUserIdReq) ProtoReflect() protoreflect.Message
- func (x *SearchForFilesByUserIdReq) Reset()
- func (x *SearchForFilesByUserIdReq) String() string
- type SearchForFilesByUserIdResp
- func (*SearchForFilesByUserIdResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForFilesByUserIdResp) GetError() string
- func (x *SearchForFilesByUserIdResp) GetFiles() []*File
- func (*SearchForFilesByUserIdResp) ProtoMessage()
- func (x *SearchForFilesByUserIdResp) ProtoReflect() protoreflect.Message
- func (x *SearchForFilesByUserIdResp) Reset()
- func (x *SearchForFilesByUserIdResp) String() string
- type SearchForFilesReq
- type SearchForFilesResp
- func (*SearchForFilesResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForFilesResp) GetError() string
- func (x *SearchForFilesResp) GetFiles() []*File
- func (*SearchForFilesResp) ProtoMessage()
- func (x *SearchForFilesResp) ProtoReflect() protoreflect.Message
- func (x *SearchForFilesResp) Reset()
- func (x *SearchForFilesResp) String() string
- type SearchForPostsByUserIdReq
- func (*SearchForPostsByUserIdReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForPostsByUserIdReq) GetTypeMount() string
- func (x *SearchForPostsByUserIdReq) GetUserId() int64
- func (*SearchForPostsByUserIdReq) ProtoMessage()
- func (x *SearchForPostsByUserIdReq) ProtoReflect() protoreflect.Message
- func (x *SearchForPostsByUserIdReq) Reset()
- func (x *SearchForPostsByUserIdReq) String() string
- type SearchForPostsByUserIdResp
- func (*SearchForPostsByUserIdResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForPostsByUserIdResp) GetError() string
- func (x *SearchForPostsByUserIdResp) GetPosts() []*Post
- func (*SearchForPostsByUserIdResp) ProtoMessage()
- func (x *SearchForPostsByUserIdResp) ProtoReflect() protoreflect.Message
- func (x *SearchForPostsByUserIdResp) Reset()
- func (x *SearchForPostsByUserIdResp) String() string
- type SearchForPostsRankReq
- func (*SearchForPostsRankReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForPostsRankReq) GetRank() int64
- func (x *SearchForPostsRankReq) GetTypeMount() string
- func (*SearchForPostsRankReq) ProtoMessage()
- func (x *SearchForPostsRankReq) ProtoReflect() protoreflect.Message
- func (x *SearchForPostsRankReq) Reset()
- func (x *SearchForPostsRankReq) String() string
- type SearchForPostsRankResp
- func (*SearchForPostsRankResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForPostsRankResp) GetError() string
- func (x *SearchForPostsRankResp) GetPosts() []*Post
- func (*SearchForPostsRankResp) ProtoMessage()
- func (x *SearchForPostsRankResp) ProtoReflect() protoreflect.Message
- func (x *SearchForPostsRankResp) Reset()
- func (x *SearchForPostsRankResp) String() string
- type SearchForPostsReq
- type SearchForPostsResp
- func (*SearchForPostsResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchForPostsResp) GetError() string
- func (x *SearchForPostsResp) GetPosts() []*Post
- func (*SearchForPostsResp) ProtoMessage()
- func (x *SearchForPostsResp) ProtoReflect() protoreflect.Message
- func (x *SearchForPostsResp) Reset()
- func (x *SearchForPostsResp) String() string
- type UnimplementedEsServer
- func (UnimplementedEsServer) InsertFile(context.Context, *InsertFileReq) (*InsertFileResp, error)
- func (UnimplementedEsServer) InsertPost(context.Context, *InsertPostReq) (*InsertPostResp, error)
- func (UnimplementedEsServer) SearchForFileRank(context.Context, *SearchForFileRankReq) (*SearchForFileRankResp, error)
- func (UnimplementedEsServer) SearchForFiles(context.Context, *SearchForFilesReq) (*SearchForFilesResp, error)
- func (UnimplementedEsServer) SearchForFilesByUserId(context.Context, *SearchForFilesByUserIdReq) (*SearchForFilesByUserIdResp, error)
- func (UnimplementedEsServer) SearchForPosts(context.Context, *SearchForPostsReq) (*SearchForPostsResp, error)
- func (UnimplementedEsServer) SearchForPostsByUserId(context.Context, *SearchForPostsByUserIdReq) (*SearchForPostsByUserIdResp, error)
- func (UnimplementedEsServer) SearchForPostsRank(context.Context, *SearchForPostsRankReq) (*SearchForPostsRankResp, error)
- func (UnimplementedEsServer) UpdateFiles(context.Context, *UpdateFilesReq) (*UpdateFilesResp, error)
- func (UnimplementedEsServer) UpdatePosts(context.Context, *UpdatePostsReq) (*UpdatePostsResp, error)
- type UnsafeEsServer
- type UpdateFilesReq
- type UpdateFilesResp
- type UpdatePostsReq
- type UpdatePostsResp
Constants ¶
const ( Es_SearchForFiles_FullMethodName = "/pb.es/SearchForFiles" Es_SearchForPosts_FullMethodName = "/pb.es/SearchForPosts" Es_SearchForFileRank_FullMethodName = "/pb.es/SearchForFileRank" Es_SearchForPostsRank_FullMethodName = "/pb.es/SearchForPostsRank" Es_SearchForFilesByUserId_FullMethodName = "/pb.es/SearchForFilesByUserId" Es_SearchForPostsByUserId_FullMethodName = "/pb.es/SearchForPostsByUserId" Es_UpdateFiles_FullMethodName = "/pb.es/UpdateFiles" Es_UpdatePosts_FullMethodName = "/pb.es/UpdatePosts" Es_InsertFile_FullMethodName = "/pb.es/InsertFile" Es_InsertPost_FullMethodName = "/pb.es/InsertPost" )
Variables ¶
var Es_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pb.es", HandlerType: (*EsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SearchForFiles", Handler: _Es_SearchForFiles_Handler, }, { MethodName: "SearchForPosts", Handler: _Es_SearchForPosts_Handler, }, { MethodName: "SearchForFileRank", Handler: _Es_SearchForFileRank_Handler, }, { MethodName: "SearchForPostsRank", Handler: _Es_SearchForPostsRank_Handler, }, { MethodName: "SearchForFilesByUserId", Handler: _Es_SearchForFilesByUserId_Handler, }, { MethodName: "SearchForPostsByUserId", Handler: _Es_SearchForPostsByUserId_Handler, }, { MethodName: "UpdateFiles", Handler: _Es_UpdateFiles_Handler, }, { MethodName: "UpdatePosts", Handler: _Es_UpdatePosts_Handler, }, { MethodName: "InsertFile", Handler: _Es_InsertFile_Handler, }, { MethodName: "InsertPost", Handler: _Es_InsertPost_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "es.proto", }
Es_ServiceDesc is the grpc.ServiceDesc for Es service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_es_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEsServer ¶
func RegisterEsServer(s grpc.ServiceRegistrar, srv EsServer)
Types ¶
type EsClient ¶
type EsClient interface { SearchForFiles(ctx context.Context, in *SearchForFilesReq, opts ...grpc.CallOption) (*SearchForFilesResp, error) SearchForPosts(ctx context.Context, in *SearchForPostsReq, opts ...grpc.CallOption) (*SearchForPostsResp, error) SearchForFileRank(ctx context.Context, in *SearchForFileRankReq, opts ...grpc.CallOption) (*SearchForFileRankResp, error) SearchForPostsRank(ctx context.Context, in *SearchForPostsRankReq, opts ...grpc.CallOption) (*SearchForPostsRankResp, error) SearchForFilesByUserId(ctx context.Context, in *SearchForFilesByUserIdReq, opts ...grpc.CallOption) (*SearchForFilesByUserIdResp, error) SearchForPostsByUserId(ctx context.Context, in *SearchForPostsByUserIdReq, opts ...grpc.CallOption) (*SearchForPostsByUserIdResp, error) UpdateFiles(ctx context.Context, in *UpdateFilesReq, opts ...grpc.CallOption) (*UpdateFilesResp, error) UpdatePosts(ctx context.Context, in *UpdatePostsReq, opts ...grpc.CallOption) (*UpdatePostsResp, error) InsertFile(ctx context.Context, in *InsertFileReq, opts ...grpc.CallOption) (*InsertFileResp, error) InsertPost(ctx context.Context, in *InsertPostReq, opts ...grpc.CallOption) (*InsertPostResp, error) }
EsClient is the client API for Es 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 NewEsClient ¶
func NewEsClient(cc grpc.ClientConnInterface) EsClient
type EsServer ¶
type EsServer interface { SearchForFiles(context.Context, *SearchForFilesReq) (*SearchForFilesResp, error) SearchForPosts(context.Context, *SearchForPostsReq) (*SearchForPostsResp, error) SearchForFileRank(context.Context, *SearchForFileRankReq) (*SearchForFileRankResp, error) SearchForPostsRank(context.Context, *SearchForPostsRankReq) (*SearchForPostsRankResp, error) SearchForFilesByUserId(context.Context, *SearchForFilesByUserIdReq) (*SearchForFilesByUserIdResp, error) SearchForPostsByUserId(context.Context, *SearchForPostsByUserIdReq) (*SearchForPostsByUserIdResp, error) UpdateFiles(context.Context, *UpdateFilesReq) (*UpdateFilesResp, error) UpdatePosts(context.Context, *UpdatePostsReq) (*UpdatePostsResp, error) InsertFile(context.Context, *InsertFileReq) (*InsertFileResp, error) InsertPost(context.Context, *InsertPostReq) (*InsertPostResp, error) // contains filtered or unexported methods }
EsServer is the server API for Es service. All implementations must embed UnimplementedEsServer for forward compatibility
type File ¶
type File struct { Title string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title"` Id string `protobuf:"bytes,2,opt,name=Id,proto3" json:"Id"` // contains filtered or unexported fields }
文件信息 文件名, 文件id
func (*File) Descriptor
deprecated
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
type InsertFileReq ¶
type InsertFileReq struct { File *File `protobuf:"bytes,1,opt,name=File,proto3" json:"File"` UserId int64 `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId"` TypeMount string `protobuf:"bytes,3,opt,name=TypeMount,proto3" json:"TypeMount"` // contains filtered or unexported fields }
func (*InsertFileReq) Descriptor
deprecated
func (*InsertFileReq) Descriptor() ([]byte, []int)
Deprecated: Use InsertFileReq.ProtoReflect.Descriptor instead.
func (*InsertFileReq) GetFile ¶
func (x *InsertFileReq) GetFile() *File
func (*InsertFileReq) GetTypeMount ¶
func (x *InsertFileReq) GetTypeMount() string
func (*InsertFileReq) GetUserId ¶
func (x *InsertFileReq) GetUserId() int64
func (*InsertFileReq) ProtoMessage ¶
func (*InsertFileReq) ProtoMessage()
func (*InsertFileReq) ProtoReflect ¶
func (x *InsertFileReq) ProtoReflect() protoreflect.Message
func (*InsertFileReq) Reset ¶
func (x *InsertFileReq) Reset()
func (*InsertFileReq) String ¶
func (x *InsertFileReq) String() string
type InsertFileResp ¶
type InsertFileResp struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*InsertFileResp) Descriptor
deprecated
func (*InsertFileResp) Descriptor() ([]byte, []int)
Deprecated: Use InsertFileResp.ProtoReflect.Descriptor instead.
func (*InsertFileResp) GetError ¶
func (x *InsertFileResp) GetError() string
func (*InsertFileResp) ProtoMessage ¶
func (*InsertFileResp) ProtoMessage()
func (*InsertFileResp) ProtoReflect ¶
func (x *InsertFileResp) ProtoReflect() protoreflect.Message
func (*InsertFileResp) Reset ¶
func (x *InsertFileResp) Reset()
func (*InsertFileResp) String ¶
func (x *InsertFileResp) String() string
type InsertPostReq ¶
type InsertPostReq struct { Post *Post `protobuf:"bytes,1,opt,name=Post,proto3" json:"Post"` UserId int64 `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId"` TypeMount string `protobuf:"bytes,3,opt,name=TypeMount,proto3" json:"TypeMount"` // contains filtered or unexported fields }
func (*InsertPostReq) Descriptor
deprecated
func (*InsertPostReq) Descriptor() ([]byte, []int)
Deprecated: Use InsertPostReq.ProtoReflect.Descriptor instead.
func (*InsertPostReq) GetPost ¶
func (x *InsertPostReq) GetPost() *Post
func (*InsertPostReq) GetTypeMount ¶
func (x *InsertPostReq) GetTypeMount() string
func (*InsertPostReq) GetUserId ¶
func (x *InsertPostReq) GetUserId() int64
func (*InsertPostReq) ProtoMessage ¶
func (*InsertPostReq) ProtoMessage()
func (*InsertPostReq) ProtoReflect ¶
func (x *InsertPostReq) ProtoReflect() protoreflect.Message
func (*InsertPostReq) Reset ¶
func (x *InsertPostReq) Reset()
func (*InsertPostReq) String ¶
func (x *InsertPostReq) String() string
type InsertPostResp ¶
type InsertPostResp struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*InsertPostResp) Descriptor
deprecated
func (*InsertPostResp) Descriptor() ([]byte, []int)
Deprecated: Use InsertPostResp.ProtoReflect.Descriptor instead.
func (*InsertPostResp) GetError ¶
func (x *InsertPostResp) GetError() string
func (*InsertPostResp) ProtoMessage ¶
func (*InsertPostResp) ProtoMessage()
func (*InsertPostResp) ProtoReflect ¶
func (x *InsertPostResp) ProtoReflect() protoreflect.Message
func (*InsertPostResp) Reset ¶
func (x *InsertPostResp) Reset()
func (*InsertPostResp) String ¶
func (x *InsertPostResp) String() string
type Post ¶
type Post struct { Title string `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title"` Content string `protobuf:"bytes,2,opt,name=Content,proto3" json:"Content"` Id string `protobuf:"bytes,3,opt,name=Id,proto3" json:"Id"` // contains filtered or unexported fields }
帖子信息 帖子标题, 帖子内容, 帖子id
func (*Post) Descriptor
deprecated
func (*Post) GetContent ¶
func (*Post) ProtoMessage ¶
func (*Post) ProtoMessage()
func (*Post) ProtoReflect ¶
func (x *Post) ProtoReflect() protoreflect.Message
type SearchForFileRankReq ¶
type SearchForFileRankReq struct { Rank int64 `protobuf:"varint,1,opt,name=Rank,proto3" json:"Rank"` TypeMount string `protobuf:"bytes,2,opt,name=TypeMount,proto3" json:"TypeMount"` // contains filtered or unexported fields }
下载/点赞/收藏量 文件排行
func (*SearchForFileRankReq) Descriptor
deprecated
func (*SearchForFileRankReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchForFileRankReq.ProtoReflect.Descriptor instead.
func (*SearchForFileRankReq) GetRank ¶
func (x *SearchForFileRankReq) GetRank() int64
func (*SearchForFileRankReq) GetTypeMount ¶
func (x *SearchForFileRankReq) GetTypeMount() string
func (*SearchForFileRankReq) ProtoMessage ¶
func (*SearchForFileRankReq) ProtoMessage()
func (*SearchForFileRankReq) ProtoReflect ¶
func (x *SearchForFileRankReq) ProtoReflect() protoreflect.Message
func (*SearchForFileRankReq) Reset ¶
func (x *SearchForFileRankReq) Reset()
func (*SearchForFileRankReq) String ¶
func (x *SearchForFileRankReq) String() string
type SearchForFileRankResp ¶
type SearchForFileRankResp struct { Files []*File `protobuf:"bytes,1,rep,name=Files,proto3" json:"Files"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*SearchForFileRankResp) Descriptor
deprecated
func (*SearchForFileRankResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchForFileRankResp.ProtoReflect.Descriptor instead.
func (*SearchForFileRankResp) GetError ¶
func (x *SearchForFileRankResp) GetError() string
func (*SearchForFileRankResp) GetFiles ¶
func (x *SearchForFileRankResp) GetFiles() []*File
func (*SearchForFileRankResp) ProtoMessage ¶
func (*SearchForFileRankResp) ProtoMessage()
func (*SearchForFileRankResp) ProtoReflect ¶
func (x *SearchForFileRankResp) ProtoReflect() protoreflect.Message
func (*SearchForFileRankResp) Reset ¶
func (x *SearchForFileRankResp) Reset()
func (*SearchForFileRankResp) String ¶
func (x *SearchForFileRankResp) String() string
type SearchForFilesByUserIdReq ¶
type SearchForFilesByUserIdReq struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"` TypeMount string `protobuf:"bytes,2,opt,name=TypeMount,proto3" json:"TypeMount"` // contains filtered or unexported fields }
用户id 查询下载/点赞/收藏过的文件
func (*SearchForFilesByUserIdReq) Descriptor
deprecated
func (*SearchForFilesByUserIdReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchForFilesByUserIdReq.ProtoReflect.Descriptor instead.
func (*SearchForFilesByUserIdReq) GetTypeMount ¶
func (x *SearchForFilesByUserIdReq) GetTypeMount() string
func (*SearchForFilesByUserIdReq) GetUserId ¶
func (x *SearchForFilesByUserIdReq) GetUserId() int64
func (*SearchForFilesByUserIdReq) ProtoMessage ¶
func (*SearchForFilesByUserIdReq) ProtoMessage()
func (*SearchForFilesByUserIdReq) ProtoReflect ¶
func (x *SearchForFilesByUserIdReq) ProtoReflect() protoreflect.Message
func (*SearchForFilesByUserIdReq) Reset ¶
func (x *SearchForFilesByUserIdReq) Reset()
func (*SearchForFilesByUserIdReq) String ¶
func (x *SearchForFilesByUserIdReq) String() string
type SearchForFilesByUserIdResp ¶
type SearchForFilesByUserIdResp struct { Files []*File `protobuf:"bytes,1,rep,name=Files,proto3" json:"Files"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*SearchForFilesByUserIdResp) Descriptor
deprecated
func (*SearchForFilesByUserIdResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchForFilesByUserIdResp.ProtoReflect.Descriptor instead.
func (*SearchForFilesByUserIdResp) GetError ¶
func (x *SearchForFilesByUserIdResp) GetError() string
func (*SearchForFilesByUserIdResp) GetFiles ¶
func (x *SearchForFilesByUserIdResp) GetFiles() []*File
func (*SearchForFilesByUserIdResp) ProtoMessage ¶
func (*SearchForFilesByUserIdResp) ProtoMessage()
func (*SearchForFilesByUserIdResp) ProtoReflect ¶
func (x *SearchForFilesByUserIdResp) ProtoReflect() protoreflect.Message
func (*SearchForFilesByUserIdResp) Reset ¶
func (x *SearchForFilesByUserIdResp) Reset()
func (*SearchForFilesByUserIdResp) String ¶
func (x *SearchForFilesByUserIdResp) String() string
type SearchForFilesReq ¶
type SearchForFilesReq struct { Content string `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content"` // contains filtered or unexported fields }
查找文件 Content: 具体内容
func (*SearchForFilesReq) Descriptor
deprecated
func (*SearchForFilesReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchForFilesReq.ProtoReflect.Descriptor instead.
func (*SearchForFilesReq) GetContent ¶
func (x *SearchForFilesReq) GetContent() string
func (*SearchForFilesReq) ProtoMessage ¶
func (*SearchForFilesReq) ProtoMessage()
func (*SearchForFilesReq) ProtoReflect ¶
func (x *SearchForFilesReq) ProtoReflect() protoreflect.Message
func (*SearchForFilesReq) Reset ¶
func (x *SearchForFilesReq) Reset()
func (*SearchForFilesReq) String ¶
func (x *SearchForFilesReq) String() string
type SearchForFilesResp ¶
type SearchForFilesResp struct { Files []*File `protobuf:"bytes,1,rep,name=Files,proto3" json:"Files"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*SearchForFilesResp) Descriptor
deprecated
func (*SearchForFilesResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchForFilesResp.ProtoReflect.Descriptor instead.
func (*SearchForFilesResp) GetError ¶
func (x *SearchForFilesResp) GetError() string
func (*SearchForFilesResp) GetFiles ¶
func (x *SearchForFilesResp) GetFiles() []*File
func (*SearchForFilesResp) ProtoMessage ¶
func (*SearchForFilesResp) ProtoMessage()
func (*SearchForFilesResp) ProtoReflect ¶
func (x *SearchForFilesResp) ProtoReflect() protoreflect.Message
func (*SearchForFilesResp) Reset ¶
func (x *SearchForFilesResp) Reset()
func (*SearchForFilesResp) String ¶
func (x *SearchForFilesResp) String() string
type SearchForPostsByUserIdReq ¶
type SearchForPostsByUserIdReq struct { UserId int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId"` TypeMount string `protobuf:"bytes,2,opt,name=TypeMount,proto3" json:"TypeMount"` // contains filtered or unexported fields }
用户id 查询点赞/收藏过的帖子
func (*SearchForPostsByUserIdReq) Descriptor
deprecated
func (*SearchForPostsByUserIdReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchForPostsByUserIdReq.ProtoReflect.Descriptor instead.
func (*SearchForPostsByUserIdReq) GetTypeMount ¶
func (x *SearchForPostsByUserIdReq) GetTypeMount() string
func (*SearchForPostsByUserIdReq) GetUserId ¶
func (x *SearchForPostsByUserIdReq) GetUserId() int64
func (*SearchForPostsByUserIdReq) ProtoMessage ¶
func (*SearchForPostsByUserIdReq) ProtoMessage()
func (*SearchForPostsByUserIdReq) ProtoReflect ¶
func (x *SearchForPostsByUserIdReq) ProtoReflect() protoreflect.Message
func (*SearchForPostsByUserIdReq) Reset ¶
func (x *SearchForPostsByUserIdReq) Reset()
func (*SearchForPostsByUserIdReq) String ¶
func (x *SearchForPostsByUserIdReq) String() string
type SearchForPostsByUserIdResp ¶
type SearchForPostsByUserIdResp struct { Posts []*Post `protobuf:"bytes,1,rep,name=Posts,proto3" json:"Posts"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*SearchForPostsByUserIdResp) Descriptor
deprecated
func (*SearchForPostsByUserIdResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchForPostsByUserIdResp.ProtoReflect.Descriptor instead.
func (*SearchForPostsByUserIdResp) GetError ¶
func (x *SearchForPostsByUserIdResp) GetError() string
func (*SearchForPostsByUserIdResp) GetPosts ¶
func (x *SearchForPostsByUserIdResp) GetPosts() []*Post
func (*SearchForPostsByUserIdResp) ProtoMessage ¶
func (*SearchForPostsByUserIdResp) ProtoMessage()
func (*SearchForPostsByUserIdResp) ProtoReflect ¶
func (x *SearchForPostsByUserIdResp) ProtoReflect() protoreflect.Message
func (*SearchForPostsByUserIdResp) Reset ¶
func (x *SearchForPostsByUserIdResp) Reset()
func (*SearchForPostsByUserIdResp) String ¶
func (x *SearchForPostsByUserIdResp) String() string
type SearchForPostsRankReq ¶
type SearchForPostsRankReq struct { Rank int64 `protobuf:"varint,1,opt,name=Rank,proto3" json:"Rank"` TypeMount string `protobuf:"bytes,2,opt,name=TypeMount,proto3" json:"TypeMount"` // contains filtered or unexported fields }
总/月/周/日榜 浏览/点赞/收藏量 帖子排行
func (*SearchForPostsRankReq) Descriptor
deprecated
func (*SearchForPostsRankReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchForPostsRankReq.ProtoReflect.Descriptor instead.
func (*SearchForPostsRankReq) GetRank ¶
func (x *SearchForPostsRankReq) GetRank() int64
func (*SearchForPostsRankReq) GetTypeMount ¶
func (x *SearchForPostsRankReq) GetTypeMount() string
func (*SearchForPostsRankReq) ProtoMessage ¶
func (*SearchForPostsRankReq) ProtoMessage()
func (*SearchForPostsRankReq) ProtoReflect ¶
func (x *SearchForPostsRankReq) ProtoReflect() protoreflect.Message
func (*SearchForPostsRankReq) Reset ¶
func (x *SearchForPostsRankReq) Reset()
func (*SearchForPostsRankReq) String ¶
func (x *SearchForPostsRankReq) String() string
type SearchForPostsRankResp ¶
type SearchForPostsRankResp struct { Posts []*Post `protobuf:"bytes,1,rep,name=Posts,proto3" json:"Posts"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*SearchForPostsRankResp) Descriptor
deprecated
func (*SearchForPostsRankResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchForPostsRankResp.ProtoReflect.Descriptor instead.
func (*SearchForPostsRankResp) GetError ¶
func (x *SearchForPostsRankResp) GetError() string
func (*SearchForPostsRankResp) GetPosts ¶
func (x *SearchForPostsRankResp) GetPosts() []*Post
func (*SearchForPostsRankResp) ProtoMessage ¶
func (*SearchForPostsRankResp) ProtoMessage()
func (*SearchForPostsRankResp) ProtoReflect ¶
func (x *SearchForPostsRankResp) ProtoReflect() protoreflect.Message
func (*SearchForPostsRankResp) Reset ¶
func (x *SearchForPostsRankResp) Reset()
func (*SearchForPostsRankResp) String ¶
func (x *SearchForPostsRankResp) String() string
type SearchForPostsReq ¶
type SearchForPostsReq struct { Content string `protobuf:"bytes,1,opt,name=Content,proto3" json:"Content"` // contains filtered or unexported fields }
查找帖子 Content: 具体内容
func (*SearchForPostsReq) Descriptor
deprecated
func (*SearchForPostsReq) Descriptor() ([]byte, []int)
Deprecated: Use SearchForPostsReq.ProtoReflect.Descriptor instead.
func (*SearchForPostsReq) GetContent ¶
func (x *SearchForPostsReq) GetContent() string
func (*SearchForPostsReq) ProtoMessage ¶
func (*SearchForPostsReq) ProtoMessage()
func (*SearchForPostsReq) ProtoReflect ¶
func (x *SearchForPostsReq) ProtoReflect() protoreflect.Message
func (*SearchForPostsReq) Reset ¶
func (x *SearchForPostsReq) Reset()
func (*SearchForPostsReq) String ¶
func (x *SearchForPostsReq) String() string
type SearchForPostsResp ¶
type SearchForPostsResp struct { Posts []*Post `protobuf:"bytes,1,rep,name=Posts,proto3" json:"Posts"` Error string `protobuf:"bytes,2,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*SearchForPostsResp) Descriptor
deprecated
func (*SearchForPostsResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchForPostsResp.ProtoReflect.Descriptor instead.
func (*SearchForPostsResp) GetError ¶
func (x *SearchForPostsResp) GetError() string
func (*SearchForPostsResp) GetPosts ¶
func (x *SearchForPostsResp) GetPosts() []*Post
func (*SearchForPostsResp) ProtoMessage ¶
func (*SearchForPostsResp) ProtoMessage()
func (*SearchForPostsResp) ProtoReflect ¶
func (x *SearchForPostsResp) ProtoReflect() protoreflect.Message
func (*SearchForPostsResp) Reset ¶
func (x *SearchForPostsResp) Reset()
func (*SearchForPostsResp) String ¶
func (x *SearchForPostsResp) String() string
type UnimplementedEsServer ¶
type UnimplementedEsServer struct { }
UnimplementedEsServer must be embedded to have forward compatible implementations.
func (UnimplementedEsServer) InsertFile ¶
func (UnimplementedEsServer) InsertFile(context.Context, *InsertFileReq) (*InsertFileResp, error)
func (UnimplementedEsServer) InsertPost ¶
func (UnimplementedEsServer) InsertPost(context.Context, *InsertPostReq) (*InsertPostResp, error)
func (UnimplementedEsServer) SearchForFileRank ¶
func (UnimplementedEsServer) SearchForFileRank(context.Context, *SearchForFileRankReq) (*SearchForFileRankResp, error)
func (UnimplementedEsServer) SearchForFiles ¶
func (UnimplementedEsServer) SearchForFiles(context.Context, *SearchForFilesReq) (*SearchForFilesResp, error)
func (UnimplementedEsServer) SearchForFilesByUserId ¶
func (UnimplementedEsServer) SearchForFilesByUserId(context.Context, *SearchForFilesByUserIdReq) (*SearchForFilesByUserIdResp, error)
func (UnimplementedEsServer) SearchForPosts ¶
func (UnimplementedEsServer) SearchForPosts(context.Context, *SearchForPostsReq) (*SearchForPostsResp, error)
func (UnimplementedEsServer) SearchForPostsByUserId ¶
func (UnimplementedEsServer) SearchForPostsByUserId(context.Context, *SearchForPostsByUserIdReq) (*SearchForPostsByUserIdResp, error)
func (UnimplementedEsServer) SearchForPostsRank ¶
func (UnimplementedEsServer) SearchForPostsRank(context.Context, *SearchForPostsRankReq) (*SearchForPostsRankResp, error)
func (UnimplementedEsServer) UpdateFiles ¶
func (UnimplementedEsServer) UpdateFiles(context.Context, *UpdateFilesReq) (*UpdateFilesResp, error)
func (UnimplementedEsServer) UpdatePosts ¶
func (UnimplementedEsServer) UpdatePosts(context.Context, *UpdatePostsReq) (*UpdatePostsResp, error)
type UnsafeEsServer ¶
type UnsafeEsServer interface {
// contains filtered or unexported methods
}
UnsafeEsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EsServer will result in compilation errors.
type UpdateFilesReq ¶
type UpdateFilesReq struct { File *File `protobuf:"bytes,1,opt,name=File,proto3" json:"File"` // contains filtered or unexported fields }
修改文件标题
func (*UpdateFilesReq) Descriptor
deprecated
func (*UpdateFilesReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFilesReq.ProtoReflect.Descriptor instead.
func (*UpdateFilesReq) GetFile ¶
func (x *UpdateFilesReq) GetFile() *File
func (*UpdateFilesReq) ProtoMessage ¶
func (*UpdateFilesReq) ProtoMessage()
func (*UpdateFilesReq) ProtoReflect ¶
func (x *UpdateFilesReq) ProtoReflect() protoreflect.Message
func (*UpdateFilesReq) Reset ¶
func (x *UpdateFilesReq) Reset()
func (*UpdateFilesReq) String ¶
func (x *UpdateFilesReq) String() string
type UpdateFilesResp ¶
type UpdateFilesResp struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*UpdateFilesResp) Descriptor
deprecated
func (*UpdateFilesResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFilesResp.ProtoReflect.Descriptor instead.
func (*UpdateFilesResp) GetError ¶
func (x *UpdateFilesResp) GetError() string
func (*UpdateFilesResp) ProtoMessage ¶
func (*UpdateFilesResp) ProtoMessage()
func (*UpdateFilesResp) ProtoReflect ¶
func (x *UpdateFilesResp) ProtoReflect() protoreflect.Message
func (*UpdateFilesResp) Reset ¶
func (x *UpdateFilesResp) Reset()
func (*UpdateFilesResp) String ¶
func (x *UpdateFilesResp) String() string
type UpdatePostsReq ¶
type UpdatePostsReq struct { Post *Post `protobuf:"bytes,1,opt,name=Post,proto3" json:"Post"` // contains filtered or unexported fields }
修改帖子标题/内容
func (*UpdatePostsReq) Descriptor
deprecated
func (*UpdatePostsReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostsReq.ProtoReflect.Descriptor instead.
func (*UpdatePostsReq) GetPost ¶
func (x *UpdatePostsReq) GetPost() *Post
func (*UpdatePostsReq) ProtoMessage ¶
func (*UpdatePostsReq) ProtoMessage()
func (*UpdatePostsReq) ProtoReflect ¶
func (x *UpdatePostsReq) ProtoReflect() protoreflect.Message
func (*UpdatePostsReq) Reset ¶
func (x *UpdatePostsReq) Reset()
func (*UpdatePostsReq) String ¶
func (x *UpdatePostsReq) String() string
type UpdatePostsResp ¶
type UpdatePostsResp struct { Error string `protobuf:"bytes,1,opt,name=Error,proto3" json:"Error"` // contains filtered or unexported fields }
func (*UpdatePostsResp) Descriptor
deprecated
func (*UpdatePostsResp) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePostsResp.ProtoReflect.Descriptor instead.
func (*UpdatePostsResp) GetError ¶
func (x *UpdatePostsResp) GetError() string
func (*UpdatePostsResp) ProtoMessage ¶
func (*UpdatePostsResp) ProtoMessage()
func (*UpdatePostsResp) ProtoReflect ¶
func (x *UpdatePostsResp) ProtoReflect() protoreflect.Message
func (*UpdatePostsResp) Reset ¶
func (x *UpdatePostsResp) Reset()
func (*UpdatePostsResp) String ¶
func (x *UpdatePostsResp) String() string