Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

grpc_testingv3

v1.14.0
github.com/bglmmz/grpc/reflection/grpc_testingv3

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

52 matches

Top ↑

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

Variables

SearchResponseV3_State_name

var SearchResponseV3_State_name = map[int32]string{
	0: "UNKNOWN",
	1: "FRESH",
	2: "STALE",
}

SearchResponseV3_State_value

var SearchResponseV3_State_value = map[string]int32{
	"UNKNOWN": 0,
	"FRESH":   1,
	"STALE":   2,
}

Functions

RegisterSearchServiceV3Server

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

Types

SearchRequestV3

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

SearchRequestV3.Descriptor

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

SearchRequestV3.GetQuery

func (m *SearchRequestV3) GetQuery() string

SearchRequestV3.ProtoMessage

func (*SearchRequestV3) ProtoMessage()

SearchRequestV3.Reset

func (m *SearchRequestV3) Reset()

SearchRequestV3.String

func (m *SearchRequestV3) String() string

SearchResponseV3

type SearchResponseV3 struct {
	Results []*SearchResponseV3_Result `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
	State   SearchResponseV3_State     `protobuf:"varint,2,opt,name=state,enum=grpc.testingv3.SearchResponseV3_State" json:"state,omitempty"`
}

SearchResponseV3.Descriptor

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

SearchResponseV3.GetResults

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

SearchResponseV3.GetState

func (m *SearchResponseV3) GetState() SearchResponseV3_State

SearchResponseV3.ProtoMessage

func (*SearchResponseV3) ProtoMessage()

SearchResponseV3.Reset

func (m *SearchResponseV3) Reset()

SearchResponseV3.String

func (m *SearchResponseV3) String() string

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"`
	Metadata map[string]*SearchResponseV3_Result_Value `protobuf:"bytes,4,rep,name=metadata" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}

SearchResponseV3_Result.Descriptor

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

SearchResponseV3_Result.GetMetadata

func (m *SearchResponseV3_Result) GetMetadata() map[string]*SearchResponseV3_Result_Value

SearchResponseV3_Result.GetSnippets

func (m *SearchResponseV3_Result) GetSnippets() []string

SearchResponseV3_Result.GetTitle

func (m *SearchResponseV3_Result) GetTitle() string

SearchResponseV3_Result.GetUrl

func (m *SearchResponseV3_Result) GetUrl() string

SearchResponseV3_Result.ProtoMessage

func (*SearchResponseV3_Result) ProtoMessage()

SearchResponseV3_Result.Reset

func (m *SearchResponseV3_Result) Reset()

SearchResponseV3_Result.String

func (m *SearchResponseV3_Result) String() string

SearchResponseV3_Result_Value

type SearchResponseV3_Result_Value struct {
	// Types that are valid to be assigned to Val:
	//	*SearchResponseV3_Result_Value_Str
	//	*SearchResponseV3_Result_Value_Int
	//	*SearchResponseV3_Result_Value_Real
	Val isSearchResponseV3_Result_Value_Val `protobuf_oneof:"val"`
}

SearchResponseV3_Result_Value.Descriptor

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

SearchResponseV3_Result_Value.GetInt

func (m *SearchResponseV3_Result_Value) GetInt() int64

SearchResponseV3_Result_Value.GetReal

func (m *SearchResponseV3_Result_Value) GetReal() float64

SearchResponseV3_Result_Value.GetStr

func (m *SearchResponseV3_Result_Value) GetStr() string

SearchResponseV3_Result_Value.GetVal

func (m *SearchResponseV3_Result_Value) GetVal() isSearchResponseV3_Result_Value_Val

SearchResponseV3_Result_Value.ProtoMessage

func (*SearchResponseV3_Result_Value) ProtoMessage()

SearchResponseV3_Result_Value.Reset

func (m *SearchResponseV3_Result_Value) Reset()

SearchResponseV3_Result_Value.String

func (m *SearchResponseV3_Result_Value) String() string

SearchResponseV3_Result_Value.XXX_OneofFuncs

func (*SearchResponseV3_Result_Value) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

SearchResponseV3_Result_Value_Int

type SearchResponseV3_Result_Value_Int struct {
	Int int64 `protobuf:"varint,2,opt,name=int,oneof"`
}

SearchResponseV3_Result_Value_Real

type SearchResponseV3_Result_Value_Real struct {
	Real float64 `protobuf:"fixed64,3,opt,name=real,oneof"`
}

SearchResponseV3_Result_Value_Str

type SearchResponseV3_Result_Value_Str struct {
	Str string `protobuf:"bytes,1,opt,name=str,oneof"`
}

SearchResponseV3_State

type SearchResponseV3_State int32

SearchResponseV3_UNKNOWN (3 declarations)

const (
	SearchResponseV3_UNKNOWN SearchResponseV3_State = 0
	SearchResponseV3_FRESH   SearchResponseV3_State = 1
	SearchResponseV3_STALE   SearchResponseV3_State = 2
)

SearchResponseV3_State.EnumDescriptor

func (SearchResponseV3_State) EnumDescriptor() ([]byte, []int)

SearchResponseV3_State.String

func (x SearchResponseV3_State) String() string

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)
}

NewSearchServiceV3Client

func NewSearchServiceV3Client(cc *grpc.ClientConn) SearchServiceV3Client

SearchServiceV3Server

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

SearchServiceV3_StreamingSearchClient

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

SearchServiceV3_StreamingSearchServer

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

Dependency graph