Documentation
¶
Overview ¶
Package search_only is a generated protocol buffer package.
It is generated from these files:
search-only.proto
It has these top-level messages:
Request Result
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterGoogleServer ¶
func RegisterGoogleServer(s *grpc.Server, srv GoogleServer)
Types ¶
type GoogleClient ¶
type GoogleClient interface {
// Search returns a Google search result for the query.
Search(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Result, error)
}
func NewGoogleClient ¶
func NewGoogleClient(cc *grpc.ClientConn) GoogleClient
type GoogleServer ¶
type Request ¶
type Request struct {
Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"`
}
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Result ¶
type Result struct {
Title string `protobuf:"bytes,1,opt,name=title" json:"title,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url" json:"url,omitempty"`
Snippet string `protobuf:"bytes,3,opt,name=snippet" json:"snippet,omitempty"`
}
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.