Documentation ¶
Index ¶
- Variables
- func RegisterSearchEngineServiceServer(s grpc.ServiceRegistrar, srv SearchEngineServiceServer)
- type PostData
- type SearchEngineList
- func (*SearchEngineList) Descriptor() ([]byte, []int)deprecated
- func (x *SearchEngineList) GetDesc() string
- func (x *SearchEngineList) GetScore() float32
- func (x *SearchEngineList) GetUrl() string
- func (x *SearchEngineList) GetUrlId() int64
- func (*SearchEngineList) ProtoMessage()
- func (x *SearchEngineList) ProtoReflect() protoreflect.Message
- func (x *SearchEngineList) Reset()
- func (x *SearchEngineList) String() string
- type SearchEngineRequest
- func (*SearchEngineRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SearchEngineRequest) GetQuery() string
- func (*SearchEngineRequest) ProtoMessage()
- func (x *SearchEngineRequest) ProtoReflect() protoreflect.Message
- func (x *SearchEngineRequest) Reset()
- func (x *SearchEngineRequest) String() string
- type SearchEngineResponse
- func (*SearchEngineResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SearchEngineResponse) GetCode() int64
- func (x *SearchEngineResponse) GetCount() int64
- func (x *SearchEngineResponse) GetData() []string
- func (x *SearchEngineResponse) GetMsg() string
- func (x *SearchEngineResponse) GetSearchEngineInfoList() []*SearchEngineList
- func (*SearchEngineResponse) ProtoMessage()
- func (x *SearchEngineResponse) ProtoReflect() protoreflect.Message
- func (x *SearchEngineResponse) Reset()
- func (x *SearchEngineResponse) String() string
- type SearchEngineServiceClient
- type SearchEngineServiceServer
- type UnimplementedSearchEngineServiceServer
- type UnsafeSearchEngineServiceServer
- type WordAssociationResponse
- func (*WordAssociationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *WordAssociationResponse) GetCode() int64
- func (x *WordAssociationResponse) GetData() string
- func (x *WordAssociationResponse) GetMsg() string
- func (x *WordAssociationResponse) GetWordAssociationList() []string
- func (*WordAssociationResponse) ProtoMessage()
- func (x *WordAssociationResponse) ProtoReflect() protoreflect.Message
- func (x *WordAssociationResponse) Reset()
- func (x *WordAssociationResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var File_search_engine_proto protoreflect.FileDescriptor
var SearchEngineService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "SearchEngineService", HandlerType: (*SearchEngineServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SearchEngineSearch", Handler: _SearchEngineService_SearchEngineSearch_Handler, }, { MethodName: "WordAssociation", Handler: _SearchEngineService_WordAssociation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "search_engine.proto", }
SearchEngineService_ServiceDesc is the grpc.ServiceDesc for SearchEngineService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSearchEngineServiceServer ¶
func RegisterSearchEngineServiceServer(s grpc.ServiceRegistrar, srv SearchEngineServiceServer)
Types ¶
type PostData ¶
type PostData struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*PostData) Descriptor
deprecated
func (*PostData) ProtoMessage ¶
func (*PostData) ProtoMessage()
func (*PostData) ProtoReflect ¶
func (x *PostData) ProtoReflect() protoreflect.Message
type SearchEngineList ¶
type SearchEngineList struct { UrlId int64 `protobuf:"varint,1,opt,name=url_id,json=urlId,proto3" json:"url_id,omitempty"` Desc string `protobuf:"bytes,2,opt,name=desc,proto3" json:"desc,omitempty"` Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` Score float32 `protobuf:"fixed32,4,opt,name=score,proto3" json:"score,omitempty"` // contains filtered or unexported fields }
func (*SearchEngineList) Descriptor
deprecated
func (*SearchEngineList) Descriptor() ([]byte, []int)
Deprecated: Use SearchEngineList.ProtoReflect.Descriptor instead.
func (*SearchEngineList) GetDesc ¶
func (x *SearchEngineList) GetDesc() string
func (*SearchEngineList) GetScore ¶ added in v0.1.1
func (x *SearchEngineList) GetScore() float32
func (*SearchEngineList) GetUrl ¶
func (x *SearchEngineList) GetUrl() string
func (*SearchEngineList) GetUrlId ¶
func (x *SearchEngineList) GetUrlId() int64
func (*SearchEngineList) ProtoMessage ¶
func (*SearchEngineList) ProtoMessage()
func (*SearchEngineList) ProtoReflect ¶
func (x *SearchEngineList) ProtoReflect() protoreflect.Message
func (*SearchEngineList) Reset ¶
func (x *SearchEngineList) Reset()
func (*SearchEngineList) String ¶
func (x *SearchEngineList) String() string
type SearchEngineRequest ¶
type SearchEngineRequest struct { // @inject_tag:form:"query" uri:"query" Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty" form:"query" uri:"query"` // contains filtered or unexported fields }
func (*SearchEngineRequest) Descriptor
deprecated
func (*SearchEngineRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchEngineRequest.ProtoReflect.Descriptor instead.
func (*SearchEngineRequest) GetQuery ¶
func (x *SearchEngineRequest) GetQuery() string
func (*SearchEngineRequest) ProtoMessage ¶
func (*SearchEngineRequest) ProtoMessage()
func (*SearchEngineRequest) ProtoReflect ¶
func (x *SearchEngineRequest) ProtoReflect() protoreflect.Message
func (*SearchEngineRequest) Reset ¶
func (x *SearchEngineRequest) Reset()
func (*SearchEngineRequest) String ¶
func (x *SearchEngineRequest) String() string
type SearchEngineResponse ¶
type SearchEngineResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` SearchEngineInfoList []*SearchEngineList `protobuf:"bytes,4,rep,name=search_engine_info_list,json=searchEngineInfoList,proto3" json:"search_engine_info_list,omitempty"` Data []string `protobuf:"bytes,5,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*SearchEngineResponse) Descriptor
deprecated
func (*SearchEngineResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchEngineResponse.ProtoReflect.Descriptor instead.
func (*SearchEngineResponse) GetCode ¶
func (x *SearchEngineResponse) GetCode() int64
func (*SearchEngineResponse) GetCount ¶ added in v0.1.1
func (x *SearchEngineResponse) GetCount() int64
func (*SearchEngineResponse) GetData ¶
func (x *SearchEngineResponse) GetData() []string
func (*SearchEngineResponse) GetMsg ¶
func (x *SearchEngineResponse) GetMsg() string
func (*SearchEngineResponse) GetSearchEngineInfoList ¶
func (x *SearchEngineResponse) GetSearchEngineInfoList() []*SearchEngineList
func (*SearchEngineResponse) ProtoMessage ¶
func (*SearchEngineResponse) ProtoMessage()
func (*SearchEngineResponse) ProtoReflect ¶
func (x *SearchEngineResponse) ProtoReflect() protoreflect.Message
func (*SearchEngineResponse) Reset ¶
func (x *SearchEngineResponse) Reset()
func (*SearchEngineResponse) String ¶
func (x *SearchEngineResponse) String() string
type SearchEngineServiceClient ¶
type SearchEngineServiceClient interface { SearchEngineSearch(ctx context.Context, in *SearchEngineRequest, opts ...grpc.CallOption) (*SearchEngineResponse, error) WordAssociation(ctx context.Context, in *SearchEngineRequest, opts ...grpc.CallOption) (*WordAssociationResponse, error) }
SearchEngineServiceClient is the client API for SearchEngineService 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 NewSearchEngineServiceClient ¶
func NewSearchEngineServiceClient(cc grpc.ClientConnInterface) SearchEngineServiceClient
type SearchEngineServiceServer ¶
type SearchEngineServiceServer interface { SearchEngineSearch(context.Context, *SearchEngineRequest) (*SearchEngineResponse, error) WordAssociation(context.Context, *SearchEngineRequest) (*WordAssociationResponse, error) // contains filtered or unexported methods }
SearchEngineServiceServer is the server API for SearchEngineService service. All implementations must embed UnimplementedSearchEngineServiceServer for forward compatibility
type UnimplementedSearchEngineServiceServer ¶
type UnimplementedSearchEngineServiceServer struct { }
UnimplementedSearchEngineServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSearchEngineServiceServer) SearchEngineSearch ¶
func (UnimplementedSearchEngineServiceServer) SearchEngineSearch(context.Context, *SearchEngineRequest) (*SearchEngineResponse, error)
func (UnimplementedSearchEngineServiceServer) WordAssociation ¶ added in v0.1.0
func (UnimplementedSearchEngineServiceServer) WordAssociation(context.Context, *SearchEngineRequest) (*WordAssociationResponse, error)
type UnsafeSearchEngineServiceServer ¶
type UnsafeSearchEngineServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSearchEngineServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SearchEngineServiceServer will result in compilation errors.
type WordAssociationResponse ¶ added in v0.1.0
type WordAssociationResponse struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` WordAssociationList []string `protobuf:"bytes,3,rep,name=word_association_list,json=wordAssociationList,proto3" json:"word_association_list,omitempty"` Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*WordAssociationResponse) Descriptor
deprecated
added in
v0.1.0
func (*WordAssociationResponse) Descriptor() ([]byte, []int)
Deprecated: Use WordAssociationResponse.ProtoReflect.Descriptor instead.
func (*WordAssociationResponse) GetCode ¶ added in v0.1.0
func (x *WordAssociationResponse) GetCode() int64
func (*WordAssociationResponse) GetData ¶ added in v0.1.0
func (x *WordAssociationResponse) GetData() string
func (*WordAssociationResponse) GetMsg ¶ added in v0.1.0
func (x *WordAssociationResponse) GetMsg() string
func (*WordAssociationResponse) GetWordAssociationList ¶ added in v0.1.0
func (x *WordAssociationResponse) GetWordAssociationList() []string
func (*WordAssociationResponse) ProtoMessage ¶ added in v0.1.0
func (*WordAssociationResponse) ProtoMessage()
func (*WordAssociationResponse) ProtoReflect ¶ added in v0.1.0
func (x *WordAssociationResponse) ProtoReflect() protoreflect.Message
func (*WordAssociationResponse) Reset ¶ added in v0.1.0
func (x *WordAssociationResponse) Reset()
func (*WordAssociationResponse) String ¶ added in v0.1.0
func (x *WordAssociationResponse) String() string