grpc_testingv3

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package grpc_testingv3 is a generated protocol buffer package.

It is generated from these files:

testv3.proto

It has these top-level messages:

SearchResponseV3
SearchRequestV3

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSearchServiceV3Server

func RegisterSearchServiceV3Server(s *grpc.Server, srv SearchServiceV3Server)

Types

type SearchRequestV3

type SearchRequestV3 struct {
	Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"`
}

func (*SearchRequestV3) Descriptor

func (*SearchRequestV3) Descriptor() ([]byte, []int)

func (*SearchRequestV3) ProtoMessage

func (*SearchRequestV3) ProtoMessage()

func (*SearchRequestV3) Reset

func (m *SearchRequestV3) Reset()

func (*SearchRequestV3) String

func (m *SearchRequestV3) String() string

type SearchResponseV3

type SearchResponseV3 struct {
	Results []*SearchResponseV3_Result `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
}

func (*SearchResponseV3) Descriptor

func (*SearchResponseV3) Descriptor() ([]byte, []int)

func (*SearchResponseV3) GetResults

func (m *SearchResponseV3) GetResults() []*SearchResponseV3_Result

func (*SearchResponseV3) ProtoMessage

func (*SearchResponseV3) ProtoMessage()

func (*SearchResponseV3) Reset

func (m *SearchResponseV3) Reset()

func (*SearchResponseV3) String

func (m *SearchResponseV3) String() string

type SearchResponseV3_Result

type SearchResponseV3_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 (*SearchResponseV3_Result) Descriptor

func (*SearchResponseV3_Result) Descriptor() ([]byte, []int)

func (*SearchResponseV3_Result) ProtoMessage

func (*SearchResponseV3_Result) ProtoMessage()

func (*SearchResponseV3_Result) Reset

func (m *SearchResponseV3_Result) Reset()

func (*SearchResponseV3_Result) String

func (m *SearchResponseV3_Result) String() string

type SearchServiceV3Client

type SearchServiceV3Client interface {
	Search(ctx context.Context, in *SearchRequestV3, opts ...grpc.CallOption) (*SearchResponseV3, error)
	StreamingSearch(ctx context.Context, opts ...grpc.CallOption) (SearchServiceV3_StreamingSearchClient, error)
}

func NewSearchServiceV3Client

func NewSearchServiceV3Client(cc *grpc.ClientConn) SearchServiceV3Client

type SearchServiceV3Server

type SearchServiceV3Server interface {
	Search(context.Context, *SearchRequestV3) (*SearchResponseV3, error)
	StreamingSearch(SearchServiceV3_StreamingSearchServer) error
}

type SearchServiceV3_StreamingSearchClient

type SearchServiceV3_StreamingSearchClient interface {
	Send(*SearchRequestV3) error
	Recv() (*SearchResponseV3, error)
	grpc.ClientStream
}

type SearchServiceV3_StreamingSearchServer

type SearchServiceV3_StreamingSearchServer interface {
	Send(*SearchResponseV3) error
	Recv() (*SearchRequestV3, error)
	grpc.ServerStream
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL