package grpc_testing
import "google.golang.org/grpc/reflection/grpc_testing"
Package grpc_testing is a generated protocol buffer package.
It is generated from these files:
proto2_ext.proto proto2.proto test.proto
It has these top-level messages:
Extension ToBeExtened SearchResponse SearchRequest
Index ¶
- Variables
- func RegisterSearchServiceServer(s *grpc.Server, srv SearchServiceServer)
- type Extension
- func (*Extension) Descriptor() ([]byte, []int)
- func (m *Extension) GetBaz() int32
- func (*Extension) ProtoMessage()
- func (m *Extension) Reset()
- func (m *Extension) String() string
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)
- func (*SearchRequest) ProtoMessage()
- func (m *SearchRequest) Reset()
- func (m *SearchRequest) String() string
- 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
- type SearchResponse_Result
- func (*SearchResponse_Result) Descriptor() ([]byte, []int)
- func (*SearchResponse_Result) ProtoMessage()
- func (m *SearchResponse_Result) Reset()
- func (m *SearchResponse_Result) String() string
- type SearchServiceClient
- type SearchServiceServer
- type SearchService_StreamingSearchClient
- type SearchService_StreamingSearchServer
- type ToBeExtened
Variables ¶
var E_Bar = &proto.ExtensionDesc{ ExtendedType: (*ToBeExtened)(nil), ExtensionType: (*int32)(nil), Field: 13, Name: "grpc.testing.bar", Tag: "varint,13,opt,name=bar", }
var E_Baz = &proto.ExtensionDesc{ ExtendedType: (*ToBeExtened)(nil), ExtensionType: (*Extension)(nil), Field: 17, Name: "grpc.testing.baz", Tag: "bytes,17,opt,name=baz", }
Functions ¶
func RegisterSearchServiceServer ¶
func RegisterSearchServiceServer(s *grpc.Server, srv SearchServiceServer)
Types ¶
type Extension ¶
type Extension struct { Baz *int32 `protobuf:"varint,1,opt,name=baz" json:"baz,omitempty"` XXX_unrecognized []byte `json:"-"` }
func (*Extension) Descriptor ¶
func (*Extension) GetBaz ¶
func (*Extension) ProtoMessage ¶
func (*Extension) ProtoMessage()
func (*Extension) Reset ¶
func (m *Extension) Reset()
func (*Extension) String ¶
type SearchRequest ¶
type SearchRequest struct { Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"` }
func (*SearchRequest) Descriptor ¶
func (*SearchRequest) Descriptor() ([]byte, []int)
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) Reset ¶
func (m *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (m *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct { Results []*SearchResponse_Result `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"` }
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
type SearchResponse_Result ¶
type SearchResponse_Result struct { Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"` Title string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` Snippets []string `protobuf:"bytes,3,rep,name=snippets" json:"snippets,omitempty"` }
func (*SearchResponse_Result) Descriptor ¶
func (*SearchResponse_Result) Descriptor() ([]byte, []int)
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
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) }
func NewSearchServiceClient ¶
func NewSearchServiceClient(cc *grpc.ClientConn) SearchServiceClient
type SearchServiceServer ¶
type SearchServiceServer interface { Search(context.Context, *SearchRequest) (*SearchResponse, error) StreamingSearch(SearchService_StreamingSearchServer) error }
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 ToBeExtened ¶
type ToBeExtened struct { Foo *int32 `protobuf:"varint,1,req,name=foo" json:"foo,omitempty"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` }
func (*ToBeExtened) Descriptor ¶
func (*ToBeExtened) Descriptor() ([]byte, []int)
func (*ToBeExtened) ExtensionRangeArray ¶
func (*ToBeExtened) ExtensionRangeArray() []proto.ExtensionRange
func (*ToBeExtened) GetFoo ¶
func (m *ToBeExtened) GetFoo() int32
func (*ToBeExtened) ProtoMessage ¶
func (*ToBeExtened) ProtoMessage()
func (*ToBeExtened) Reset ¶
func (m *ToBeExtened) Reset()
func (*ToBeExtened) String ¶
func (m *ToBeExtened) String() string
Source Files ¶
proto2.pb.go proto2_ext.pb.go test.pb.go
- Version
- v1.0.0
- Published
- Jul 11, 2016
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 35 seconds ago –
Tools for package owners.