Documentation ¶
Index ¶
- Variables
- func RegisterSearchServiceService(s grpc.ServiceRegistrar, srv *SearchServiceService)
- type AnotherExtension
- func (*AnotherExtension) Descriptor() ([]byte, []int)
- func (m *AnotherExtension) GetWhatchamacallit() int32
- func (*AnotherExtension) ProtoMessage()
- func (m *AnotherExtension) Reset()
- func (m *AnotherExtension) String() string
- func (m *AnotherExtension) XXX_DiscardUnknown()
- func (m *AnotherExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AnotherExtension) XXX_Merge(src proto.Message)
- func (m *AnotherExtension) XXX_Size() int
- func (m *AnotherExtension) XXX_Unmarshal(b []byte) error
- type Extension
- func (*Extension) Descriptor() ([]byte, []int)
- func (m *Extension) GetWhatzit() int32
- func (*Extension) ProtoMessage()
- func (m *Extension) Reset()
- func (m *Extension) String() string
- func (m *Extension) XXX_DiscardUnknown()
- func (m *Extension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Extension) XXX_Merge(src proto.Message)
- func (m *Extension) XXX_Size() int
- func (m *Extension) XXX_Unmarshal(b []byte) error
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)
- func (m *SearchRequest) GetQuery() string
- func (*SearchRequest) ProtoMessage()
- func (m *SearchRequest) Reset()
- func (m *SearchRequest) String() string
- func (m *SearchRequest) XXX_DiscardUnknown()
- func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchRequest) XXX_Merge(src proto.Message)
- func (m *SearchRequest) XXX_Size() int
- func (m *SearchRequest) XXX_Unmarshal(b []byte) error
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)
- func (m *SearchResponse) GetResults() []*SearchResponse_Result
- func (*SearchResponse) ProtoMessage()
- func (m *SearchResponse) Reset()
- func (m *SearchResponse) String() string
- func (m *SearchResponse) XXX_DiscardUnknown()
- func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchResponse) XXX_Merge(src proto.Message)
- func (m *SearchResponse) XXX_Size() int
- func (m *SearchResponse) XXX_Unmarshal(b []byte) error
- type SearchResponse_Result
- func (*SearchResponse_Result) Descriptor() ([]byte, []int)
- func (m *SearchResponse_Result) GetSnippets() []string
- func (m *SearchResponse_Result) GetTitle() string
- func (m *SearchResponse_Result) GetUrl() string
- func (*SearchResponse_Result) ProtoMessage()
- func (m *SearchResponse_Result) Reset()
- func (m *SearchResponse_Result) String() string
- func (m *SearchResponse_Result) XXX_DiscardUnknown()
- func (m *SearchResponse_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchResponse_Result) XXX_Merge(src proto.Message)
- func (m *SearchResponse_Result) XXX_Size() int
- func (m *SearchResponse_Result) XXX_Unmarshal(b []byte) error
- type SearchServiceClient
- type SearchServiceService
- type SearchService_StreamingSearchClient
- type SearchService_StreamingSearchServer
- type ToBeExtended
- func (*ToBeExtended) Descriptor() ([]byte, []int)
- func (*ToBeExtended) ExtensionRangeArray() []proto.ExtensionRange
- func (m *ToBeExtended) GetFoo() int32
- func (*ToBeExtended) ProtoMessage()
- func (m *ToBeExtended) Reset()
- func (m *ToBeExtended) String() string
- func (m *ToBeExtended) XXX_DiscardUnknown()
- func (m *ToBeExtended) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ToBeExtended) XXX_Merge(src proto.Message)
- func (m *ToBeExtended) XXX_Size() int
- func (m *ToBeExtended) XXX_Unmarshal(b []byte) error
- type UnstableSearchServiceService
Constants ¶
This section is empty.
Variables ¶
var E_Bar = &proto.ExtensionDesc{ ExtendedType: (*ToBeExtended)(nil), ExtensionType: (*Extension)(nil), Field: 17, Name: "grpc.testing.bar", Tag: "bytes,17,opt,name=bar", Filename: "reflection/grpc_testing/proto2_ext.proto", }
var E_Baz = &proto.ExtensionDesc{ ExtendedType: (*ToBeExtended)(nil), ExtensionType: (*SearchRequest)(nil), Field: 19, Name: "grpc.testing.baz", Tag: "bytes,19,opt,name=baz", Filename: "reflection/grpc_testing/proto2_ext.proto", }
var E_Foo = &proto.ExtensionDesc{ ExtendedType: (*ToBeExtended)(nil), ExtensionType: (*int32)(nil), Field: 13, Name: "grpc.testing.foo", Tag: "varint,13,opt,name=foo", Filename: "reflection/grpc_testing/proto2_ext.proto", }
var E_Frob = &proto.ExtensionDesc{ ExtendedType: (*ToBeExtended)(nil), ExtensionType: (*string)(nil), Field: 23, Name: "grpc.testing.frob", Tag: "bytes,23,opt,name=frob", Filename: "reflection/grpc_testing/proto2_ext2.proto", }
var E_Nitz = &proto.ExtensionDesc{ ExtendedType: (*ToBeExtended)(nil), ExtensionType: (*AnotherExtension)(nil), Field: 29, Name: "grpc.testing.nitz", Tag: "bytes,29,opt,name=nitz", Filename: "reflection/grpc_testing/proto2_ext2.proto", }
Functions ¶
func RegisterSearchServiceService ¶ added in v1.32.0
func RegisterSearchServiceService(s grpc.ServiceRegistrar, srv *SearchServiceService)
RegisterSearchServiceService registers a service implementation with a gRPC server.
Types ¶
type AnotherExtension ¶ added in v1.2.0
type AnotherExtension struct { Whatchamacallit *int32 `protobuf:"varint,1,opt,name=whatchamacallit" json:"whatchamacallit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AnotherExtension) Descriptor ¶ added in v1.2.0
func (*AnotherExtension) Descriptor() ([]byte, []int)
func (*AnotherExtension) GetWhatchamacallit ¶ added in v1.2.0
func (m *AnotherExtension) GetWhatchamacallit() int32
func (*AnotherExtension) ProtoMessage ¶ added in v1.2.0
func (*AnotherExtension) ProtoMessage()
func (*AnotherExtension) Reset ¶ added in v1.2.0
func (m *AnotherExtension) Reset()
func (*AnotherExtension) String ¶ added in v1.2.0
func (m *AnotherExtension) String() string
func (*AnotherExtension) XXX_DiscardUnknown ¶ added in v1.12.0
func (m *AnotherExtension) XXX_DiscardUnknown()
func (*AnotherExtension) XXX_Marshal ¶ added in v1.12.0
func (m *AnotherExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AnotherExtension) XXX_Merge ¶ added in v1.12.0
func (m *AnotherExtension) XXX_Merge(src proto.Message)
func (*AnotherExtension) XXX_Size ¶ added in v1.12.0
func (m *AnotherExtension) XXX_Size() int
func (*AnotherExtension) XXX_Unmarshal ¶ added in v1.12.0
func (m *AnotherExtension) XXX_Unmarshal(b []byte) error
type Extension ¶
type Extension struct { Whatzit *int32 `protobuf:"varint,1,opt,name=whatzit" json:"whatzit,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Extension) Descriptor ¶
func (*Extension) GetWhatzit ¶ added in v1.2.0
func (*Extension) ProtoMessage ¶
func (*Extension) ProtoMessage()
func (*Extension) XXX_DiscardUnknown ¶ added in v1.12.0
func (m *Extension) XXX_DiscardUnknown()
func (*Extension) XXX_Marshal ¶ added in v1.12.0
func (*Extension) XXX_Unmarshal ¶ added in v1.12.0
type SearchRequest ¶
type SearchRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchRequest) Descriptor ¶
func (*SearchRequest) Descriptor() ([]byte, []int)
func (*SearchRequest) GetQuery ¶ added in v1.2.0
func (m *SearchRequest) GetQuery() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) Reset ¶
func (m *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (m *SearchRequest) String() string
func (*SearchRequest) XXX_DiscardUnknown ¶ added in v1.12.0
func (m *SearchRequest) XXX_DiscardUnknown()
func (*SearchRequest) XXX_Marshal ¶ added in v1.12.0
func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchRequest) XXX_Merge ¶ added in v1.12.0
func (m *SearchRequest) XXX_Merge(src proto.Message)
func (*SearchRequest) XXX_Size ¶ added in v1.12.0
func (m *SearchRequest) XXX_Size() int
func (*SearchRequest) XXX_Unmarshal ¶ added in v1.12.0
func (m *SearchRequest) XXX_Unmarshal(b []byte) error
type SearchResponse ¶
type SearchResponse struct { Results []*SearchResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchResponse) Descriptor ¶
func (*SearchResponse) Descriptor() ([]byte, []int)
func (*SearchResponse) GetResults ¶
func (m *SearchResponse) GetResults() []*SearchResponse_Result
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) Reset ¶
func (m *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (m *SearchResponse) String() string
func (*SearchResponse) XXX_DiscardUnknown ¶ added in v1.12.0
func (m *SearchResponse) XXX_DiscardUnknown()
func (*SearchResponse) XXX_Marshal ¶ added in v1.12.0
func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchResponse) XXX_Merge ¶ added in v1.12.0
func (m *SearchResponse) XXX_Merge(src proto.Message)
func (*SearchResponse) XXX_Size ¶ added in v1.12.0
func (m *SearchResponse) XXX_Size() int
func (*SearchResponse) XXX_Unmarshal ¶ added in v1.12.0
func (m *SearchResponse) XXX_Unmarshal(b []byte) error
type SearchResponse_Result ¶
type SearchResponse_Result struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Snippets []string `protobuf:"bytes,3,rep,name=snippets,proto3" json:"snippets,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchResponse_Result) Descriptor ¶
func (*SearchResponse_Result) Descriptor() ([]byte, []int)
func (*SearchResponse_Result) GetSnippets ¶ added in v1.2.0
func (m *SearchResponse_Result) GetSnippets() []string
func (*SearchResponse_Result) GetTitle ¶ added in v1.2.0
func (m *SearchResponse_Result) GetTitle() string
func (*SearchResponse_Result) GetUrl ¶ added in v1.2.0
func (m *SearchResponse_Result) GetUrl() string
func (*SearchResponse_Result) ProtoMessage ¶
func (*SearchResponse_Result) ProtoMessage()
func (*SearchResponse_Result) Reset ¶
func (m *SearchResponse_Result) Reset()
func (*SearchResponse_Result) String ¶
func (m *SearchResponse_Result) String() string
func (*SearchResponse_Result) XXX_DiscardUnknown ¶ added in v1.12.0
func (m *SearchResponse_Result) XXX_DiscardUnknown()
func (*SearchResponse_Result) XXX_Marshal ¶ added in v1.12.0
func (m *SearchResponse_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchResponse_Result) XXX_Merge ¶ added in v1.12.0
func (m *SearchResponse_Result) XXX_Merge(src proto.Message)
func (*SearchResponse_Result) XXX_Size ¶ added in v1.12.0
func (m *SearchResponse_Result) XXX_Size() int
func (*SearchResponse_Result) XXX_Unmarshal ¶ added in v1.12.0
func (m *SearchResponse_Result) XXX_Unmarshal(b []byte) error
type SearchServiceClient ¶
type SearchServiceClient interface { Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) StreamingSearch(ctx context.Context, opts ...grpc.CallOption) (SearchService_StreamingSearchClient, error) }
SearchServiceClient is the client API for SearchService 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 NewSearchServiceClient ¶
func NewSearchServiceClient(cc grpc.ClientConnInterface) SearchServiceClient
type SearchServiceService ¶ added in v1.32.0
type SearchServiceService struct { Search func(context.Context, *SearchRequest) (*SearchResponse, error) StreamingSearch func(SearchService_StreamingSearchServer) error }
SearchServiceService is the service API for SearchService service. Fields should be assigned to their respective handler implementations only before RegisterSearchServiceService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.
func NewSearchServiceService ¶ added in v1.32.0
func NewSearchServiceService(s interface{}) *SearchServiceService
NewSearchServiceService creates a new SearchServiceService containing the implemented methods of the SearchService service in s. Any unimplemented methods will result in the gRPC server returning an UNIMPLEMENTED status to the client. This includes situations where the method handler is misspelled or has the wrong signature. For this reason, this function should be used with great care and is not recommended to be used by most users.
type SearchService_StreamingSearchClient ¶
type SearchService_StreamingSearchClient interface { Send(*SearchRequest) error Recv() (*SearchResponse, error) grpc.ClientStream }
type SearchService_StreamingSearchServer ¶
type SearchService_StreamingSearchServer interface { Send(*SearchResponse) error Recv() (*SearchRequest, error) grpc.ServerStream }
type ToBeExtended ¶ added in v1.2.0
type ToBeExtended struct { Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ToBeExtended) Descriptor ¶ added in v1.2.0
func (*ToBeExtended) Descriptor() ([]byte, []int)
func (*ToBeExtended) ExtensionRangeArray ¶ added in v1.2.0
func (*ToBeExtended) ExtensionRangeArray() []proto.ExtensionRange
func (*ToBeExtended) GetFoo ¶ added in v1.2.0
func (m *ToBeExtended) GetFoo() int32
func (*ToBeExtended) ProtoMessage ¶ added in v1.2.0
func (*ToBeExtended) ProtoMessage()
func (*ToBeExtended) Reset ¶ added in v1.2.0
func (m *ToBeExtended) Reset()
func (*ToBeExtended) String ¶ added in v1.2.0
func (m *ToBeExtended) String() string
func (*ToBeExtended) XXX_DiscardUnknown ¶ added in v1.12.0
func (m *ToBeExtended) XXX_DiscardUnknown()
func (*ToBeExtended) XXX_Marshal ¶ added in v1.12.0
func (m *ToBeExtended) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ToBeExtended) XXX_Merge ¶ added in v1.12.0
func (m *ToBeExtended) XXX_Merge(src proto.Message)
func (*ToBeExtended) XXX_Size ¶ added in v1.12.0
func (m *ToBeExtended) XXX_Size() int
func (*ToBeExtended) XXX_Unmarshal ¶ added in v1.12.0
func (m *ToBeExtended) XXX_Unmarshal(b []byte) error
type UnstableSearchServiceService ¶ added in v1.32.0
type UnstableSearchServiceService interface { Search(context.Context, *SearchRequest) (*SearchResponse, error) StreamingSearch(SearchService_StreamingSearchServer) error }
UnstableSearchServiceService is the service API for SearchService service. New methods may be added to this interface if they are added to the service definition, which is not a backward-compatible change. For this reason, use of this type is not recommended.