Documentation ¶
Index ¶
- Variables
- func RegisterGoLitebookPluginServer(s grpc.ServiceRegistrar, srv GoLitebookPluginServer)
- type Empty
- type GetBookInfoReq
- type GetBookInfoResp
- func (*GetBookInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookInfoResp) GetBookIndexURL() string
- func (x *GetBookInfoResp) GetLastChapterName() string
- func (x *GetBookInfoResp) GetTotalChapterCount() uint32
- func (*GetBookInfoResp) ProtoMessage()
- func (x *GetBookInfoResp) ProtoReflect() protoreflect.Message
- func (x *GetBookInfoResp) Reset()
- func (x *GetBookInfoResp) String() string
- type GetBookReq
- func (*GetBookReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookReq) GetBookIndexURL() string
- func (x *GetBookReq) GetCurrentChaptCount() uint32
- func (x *GetBookReq) GetUpdateOnly() bool
- func (*GetBookReq) ProtoMessage()
- func (x *GetBookReq) ProtoReflect() protoreflect.Message
- func (x *GetBookReq) Reset()
- func (x *GetBookReq) String() string
- type GetChapterResp
- func (*GetChapterResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetChapterResp) GetChapterContent() string
- func (x *GetChapterResp) GetChapterId() uint32
- func (x *GetChapterResp) GetChapterName() string
- func (*GetChapterResp) ProtoMessage()
- func (x *GetChapterResp) ProtoReflect() protoreflect.Message
- func (x *GetChapterResp) Reset()
- func (x *GetChapterResp) String() string
- type GoLitebookPluginClient
- type GoLitebookPluginServer
- type GoLitebookPlugin_GetBookClient
- type GoLitebookPlugin_GetBookServer
- type GoLitebookPlugin_KeepaliveClient
- type GoLitebookPlugin_KeepaliveServer
- type PluginDesc
- type SearchBookResp
- func (*SearchBookResp) Descriptor() ([]byte, []int)deprecated
- func (x *SearchBookResp) GetAuthorName() string
- func (x *SearchBookResp) GetBookName() string
- func (x *SearchBookResp) GetBookPageURL() string
- func (x *SearchBookResp) GetBookSize() string
- func (x *SearchBookResp) GetLastUpdate() *timestamppb.Timestamp
- func (x *SearchBookResp) GetStatus() string
- func (*SearchBookResp) ProtoMessage()
- func (x *SearchBookResp) ProtoReflect() protoreflect.Message
- func (x *SearchBookResp) Reset()
- func (x *SearchBookResp) String() string
- type SearchReq
- type SearchResp
- type UnimplementedGoLitebookPluginServer
- func (UnimplementedGoLitebookPluginServer) GetBook(*GetBookReq, GoLitebookPlugin_GetBookServer) error
- func (UnimplementedGoLitebookPluginServer) GetBookInfo(context.Context, *GetBookInfoReq) (*GetBookInfoResp, error)
- func (UnimplementedGoLitebookPluginServer) GetDesc(context.Context, *Empty) (*PluginDesc, error)
- func (UnimplementedGoLitebookPluginServer) Keepalive(GoLitebookPlugin_KeepaliveServer) error
- func (UnimplementedGoLitebookPluginServer) Search(context.Context, *SearchReq) (*SearchResp, error)
- type UnsafeGoLitebookPluginServer
Constants ¶
This section is empty.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGoLitebookPluginServer ¶
func RegisterGoLitebookPluginServer(s grpc.ServiceRegistrar, srv GoLitebookPluginServer)
Types ¶
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type GetBookInfoReq ¶
type GetBookInfoReq struct { BookPageURL string `protobuf:"bytes,1,opt,name=BookPageURL,proto3" json:"BookPageURL,omitempty"` // contains filtered or unexported fields }
func (*GetBookInfoReq) Descriptor
deprecated
func (*GetBookInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBookInfoReq.ProtoReflect.Descriptor instead.
func (*GetBookInfoReq) GetBookPageURL ¶
func (x *GetBookInfoReq) GetBookPageURL() string
func (*GetBookInfoReq) ProtoMessage ¶
func (*GetBookInfoReq) ProtoMessage()
func (*GetBookInfoReq) ProtoReflect ¶
func (x *GetBookInfoReq) ProtoReflect() protoreflect.Message
func (*GetBookInfoReq) Reset ¶
func (x *GetBookInfoReq) Reset()
func (*GetBookInfoReq) String ¶
func (x *GetBookInfoReq) String() string
type GetBookInfoResp ¶
type GetBookInfoResp struct { TotalChapterCount uint32 `protobuf:"varint,1,opt,name=TotalChapterCount,proto3" json:"TotalChapterCount,omitempty"` LastChapterName string `protobuf:"bytes,2,opt,name=LastChapterName,proto3" json:"LastChapterName,omitempty"` BookIndexURL string `protobuf:"bytes,3,opt,name=BookIndexURL,proto3" json:"BookIndexURL,omitempty"` // contains filtered or unexported fields }
func (*GetBookInfoResp) Descriptor
deprecated
func (*GetBookInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use GetBookInfoResp.ProtoReflect.Descriptor instead.
func (*GetBookInfoResp) GetBookIndexURL ¶
func (x *GetBookInfoResp) GetBookIndexURL() string
func (*GetBookInfoResp) GetLastChapterName ¶
func (x *GetBookInfoResp) GetLastChapterName() string
func (*GetBookInfoResp) GetTotalChapterCount ¶
func (x *GetBookInfoResp) GetTotalChapterCount() uint32
func (*GetBookInfoResp) ProtoMessage ¶
func (*GetBookInfoResp) ProtoMessage()
func (*GetBookInfoResp) ProtoReflect ¶
func (x *GetBookInfoResp) ProtoReflect() protoreflect.Message
func (*GetBookInfoResp) Reset ¶
func (x *GetBookInfoResp) Reset()
func (*GetBookInfoResp) String ¶
func (x *GetBookInfoResp) String() string
type GetBookReq ¶
type GetBookReq struct { BookIndexURL string `protobuf:"bytes,1,opt,name=BookIndexURL,proto3" json:"BookIndexURL,omitempty"` UpdateOnly bool `protobuf:"varint,2,opt,name=UpdateOnly,proto3" json:"UpdateOnly,omitempty"` CurrentChaptCount uint32 `protobuf:"varint,3,opt,name=CurrentChaptCount,proto3" json:"CurrentChaptCount,omitempty"` // contains filtered or unexported fields }
func (*GetBookReq) Descriptor
deprecated
func (*GetBookReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBookReq.ProtoReflect.Descriptor instead.
func (*GetBookReq) GetBookIndexURL ¶
func (x *GetBookReq) GetBookIndexURL() string
func (*GetBookReq) GetCurrentChaptCount ¶
func (x *GetBookReq) GetCurrentChaptCount() uint32
func (*GetBookReq) GetUpdateOnly ¶
func (x *GetBookReq) GetUpdateOnly() bool
func (*GetBookReq) ProtoMessage ¶
func (*GetBookReq) ProtoMessage()
func (*GetBookReq) ProtoReflect ¶
func (x *GetBookReq) ProtoReflect() protoreflect.Message
func (*GetBookReq) Reset ¶
func (x *GetBookReq) Reset()
func (*GetBookReq) String ¶
func (x *GetBookReq) String() string
type GetChapterResp ¶
type GetChapterResp struct { ChapterContent string `protobuf:"bytes,1,opt,name=ChapterContent,proto3" json:"ChapterContent,omitempty"` ChapterId uint32 `protobuf:"varint,2,opt,name=ChapterId,proto3" json:"ChapterId,omitempty"` ChapterName string `protobuf:"bytes,3,opt,name=ChapterName,proto3" json:"ChapterName,omitempty"` // contains filtered or unexported fields }
func (*GetChapterResp) Descriptor
deprecated
func (*GetChapterResp) Descriptor() ([]byte, []int)
Deprecated: Use GetChapterResp.ProtoReflect.Descriptor instead.
func (*GetChapterResp) GetChapterContent ¶
func (x *GetChapterResp) GetChapterContent() string
func (*GetChapterResp) GetChapterId ¶
func (x *GetChapterResp) GetChapterId() uint32
func (*GetChapterResp) GetChapterName ¶
func (x *GetChapterResp) GetChapterName() string
func (*GetChapterResp) ProtoMessage ¶
func (*GetChapterResp) ProtoMessage()
func (*GetChapterResp) ProtoReflect ¶
func (x *GetChapterResp) ProtoReflect() protoreflect.Message
func (*GetChapterResp) Reset ¶
func (x *GetChapterResp) Reset()
func (*GetChapterResp) String ¶
func (x *GetChapterResp) String() string
type GoLitebookPluginClient ¶
type GoLitebookPluginClient interface { Search(ctx context.Context, in *SearchReq, opts ...grpc.CallOption) (*SearchResp, error) GetDesc(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PluginDesc, error) GetBookInfo(ctx context.Context, in *GetBookInfoReq, opts ...grpc.CallOption) (*GetBookInfoResp, error) GetBook(ctx context.Context, in *GetBookReq, opts ...grpc.CallOption) (GoLitebookPlugin_GetBookClient, error) Keepalive(ctx context.Context, opts ...grpc.CallOption) (GoLitebookPlugin_KeepaliveClient, error) }
GoLitebookPluginClient is the client API for GoLitebookPlugin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.golang.ir/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGoLitebookPluginClient ¶
func NewGoLitebookPluginClient(cc grpc.ClientConnInterface) GoLitebookPluginClient
type GoLitebookPluginServer ¶
type GoLitebookPluginServer interface { Search(context.Context, *SearchReq) (*SearchResp, error) GetDesc(context.Context, *Empty) (*PluginDesc, error) GetBookInfo(context.Context, *GetBookInfoReq) (*GetBookInfoResp, error) GetBook(*GetBookReq, GoLitebookPlugin_GetBookServer) error Keepalive(GoLitebookPlugin_KeepaliveServer) error // contains filtered or unexported methods }
GoLitebookPluginServer is the server API for GoLitebookPlugin service. All implementations must embed UnimplementedGoLitebookPluginServer for forward compatibility
type GoLitebookPlugin_GetBookClient ¶
type GoLitebookPlugin_GetBookClient interface { Recv() (*GetChapterResp, error) grpc.ClientStream }
type GoLitebookPlugin_GetBookServer ¶
type GoLitebookPlugin_GetBookServer interface { Send(*GetChapterResp) error grpc.ServerStream }
type PluginDesc ¶
type PluginDesc struct { Desc string `protobuf:"bytes,1,opt,name=Desc,proto3" json:"Desc,omitempty"` // contains filtered or unexported fields }
func (*PluginDesc) Descriptor
deprecated
func (*PluginDesc) Descriptor() ([]byte, []int)
Deprecated: Use PluginDesc.ProtoReflect.Descriptor instead.
func (*PluginDesc) GetDesc ¶
func (x *PluginDesc) GetDesc() string
func (*PluginDesc) ProtoMessage ¶
func (*PluginDesc) ProtoMessage()
func (*PluginDesc) ProtoReflect ¶
func (x *PluginDesc) ProtoReflect() protoreflect.Message
func (*PluginDesc) Reset ¶
func (x *PluginDesc) Reset()
func (*PluginDesc) String ¶
func (x *PluginDesc) String() string
type SearchBookResp ¶
type SearchBookResp struct { BookName string `protobuf:"bytes,1,opt,name=BookName,proto3" json:"BookName,omitempty"` BookPageURL string `protobuf:"bytes,2,opt,name=BookPageURL,proto3" json:"BookPageURL,omitempty"` BookSize string `protobuf:"bytes,3,opt,name=BookSize,proto3" json:"BookSize,omitempty"` AuthorName string `protobuf:"bytes,4,opt,name=AuthorName,proto3" json:"AuthorName,omitempty"` Status string `protobuf:"bytes,5,opt,name=Status,proto3" json:"Status,omitempty"` LastUpdate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=LastUpdate,proto3" json:"LastUpdate,omitempty"` // contains filtered or unexported fields }
func (*SearchBookResp) Descriptor
deprecated
func (*SearchBookResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchBookResp.ProtoReflect.Descriptor instead.
func (*SearchBookResp) GetAuthorName ¶
func (x *SearchBookResp) GetAuthorName() string
func (*SearchBookResp) GetBookName ¶
func (x *SearchBookResp) GetBookName() string
func (*SearchBookResp) GetBookPageURL ¶
func (x *SearchBookResp) GetBookPageURL() string
func (*SearchBookResp) GetBookSize ¶
func (x *SearchBookResp) GetBookSize() string
func (*SearchBookResp) GetLastUpdate ¶
func (x *SearchBookResp) GetLastUpdate() *timestamppb.Timestamp
func (*SearchBookResp) GetStatus ¶
func (x *SearchBookResp) GetStatus() string
func (*SearchBookResp) ProtoMessage ¶
func (*SearchBookResp) ProtoMessage()
func (*SearchBookResp) ProtoReflect ¶
func (x *SearchBookResp) ProtoReflect() protoreflect.Message
func (*SearchBookResp) Reset ¶
func (x *SearchBookResp) Reset()
func (*SearchBookResp) String ¶
func (x *SearchBookResp) String() string
type SearchReq ¶
type SearchReq struct { Keyword string `protobuf:"bytes,1,opt,name=Keyword,proto3" json:"Keyword,omitempty"` // contains filtered or unexported fields }
func (*SearchReq) Descriptor
deprecated
func (*SearchReq) GetKeyword ¶
func (*SearchReq) ProtoMessage ¶
func (*SearchReq) ProtoMessage()
func (*SearchReq) ProtoReflect ¶
func (x *SearchReq) ProtoReflect() protoreflect.Message
type SearchResp ¶
type SearchResp struct { ResultList []*SearchBookResp `protobuf:"bytes,1,rep,name=ResultList,proto3" json:"ResultList,omitempty"` // contains filtered or unexported fields }
func (*SearchResp) Descriptor
deprecated
func (*SearchResp) Descriptor() ([]byte, []int)
Deprecated: Use SearchResp.ProtoReflect.Descriptor instead.
func (*SearchResp) GetResultList ¶
func (x *SearchResp) GetResultList() []*SearchBookResp
func (*SearchResp) ProtoMessage ¶
func (*SearchResp) ProtoMessage()
func (*SearchResp) ProtoReflect ¶
func (x *SearchResp) ProtoReflect() protoreflect.Message
func (*SearchResp) Reset ¶
func (x *SearchResp) Reset()
func (*SearchResp) String ¶
func (x *SearchResp) String() string
type UnimplementedGoLitebookPluginServer ¶
type UnimplementedGoLitebookPluginServer struct { }
UnimplementedGoLitebookPluginServer must be embedded to have forward compatible implementations.
func (UnimplementedGoLitebookPluginServer) GetBook ¶
func (UnimplementedGoLitebookPluginServer) GetBook(*GetBookReq, GoLitebookPlugin_GetBookServer) error
func (UnimplementedGoLitebookPluginServer) GetBookInfo ¶
func (UnimplementedGoLitebookPluginServer) GetBookInfo(context.Context, *GetBookInfoReq) (*GetBookInfoResp, error)
func (UnimplementedGoLitebookPluginServer) GetDesc ¶
func (UnimplementedGoLitebookPluginServer) GetDesc(context.Context, *Empty) (*PluginDesc, error)
func (UnimplementedGoLitebookPluginServer) Keepalive ¶
func (UnimplementedGoLitebookPluginServer) Keepalive(GoLitebookPlugin_KeepaliveServer) error
func (UnimplementedGoLitebookPluginServer) Search ¶
func (UnimplementedGoLitebookPluginServer) Search(context.Context, *SearchReq) (*SearchResp, error)
type UnsafeGoLitebookPluginServer ¶
type UnsafeGoLitebookPluginServer interface {
// contains filtered or unexported methods
}
UnsafeGoLitebookPluginServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GoLitebookPluginServer will result in compilation errors.