searchproto

package
v0.0.0-...-4e281dc Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protofiles_search_search_proto protoreflect.FileDescriptor

Functions

func RegisterSearchServiceServer

func RegisterSearchServiceServer(s grpc.ServiceRegistrar, srv SearchServiceServer)

Types

type CreateSearchRequest

type CreateSearchRequest struct {
	Query     string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	UserEmail string `protobuf:"bytes,2,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
	RequestId string `protobuf:"bytes,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateSearchRequest) Descriptor deprecated

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

Deprecated: Use CreateSearchRequest.ProtoReflect.Descriptor instead.

func (*CreateSearchRequest) GetQuery

func (x *CreateSearchRequest) GetQuery() string

func (*CreateSearchRequest) GetRequestId

func (x *CreateSearchRequest) GetRequestId() string

func (*CreateSearchRequest) GetUserEmail

func (x *CreateSearchRequest) GetUserEmail() string

func (*CreateSearchRequest) ProtoMessage

func (*CreateSearchRequest) ProtoMessage()

func (*CreateSearchRequest) ProtoReflect

func (x *CreateSearchRequest) ProtoReflect() protoreflect.Message

func (*CreateSearchRequest) Reset

func (x *CreateSearchRequest) Reset()

func (*CreateSearchRequest) String

func (x *CreateSearchRequest) String() string

type Highlights

type Highlights struct {
	Name []string `protobuf:"bytes,1,rep,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Highlights) Descriptor deprecated

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

Deprecated: Use Highlights.ProtoReflect.Descriptor instead.

func (*Highlights) GetName

func (x *Highlights) GetName() []string

func (*Highlights) ProtoMessage

func (*Highlights) ProtoMessage()

func (*Highlights) ProtoReflect

func (x *Highlights) ProtoReflect() protoreflect.Message

func (*Highlights) Reset

func (x *Highlights) Reset()

func (*Highlights) String

func (x *Highlights) String() string

type Hit

type Hit struct {
	Id           int32       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	IdS          string      `protobuf:"bytes,2,opt,name=id_s,json=idS,proto3" json:"id_s,omitempty"`
	Name         string      `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description  string      `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	MessageTexts []*MsgText  `protobuf:"bytes,5,rep,name=MessageTexts,proto3" json:"MessageTexts,omitempty"`
	Highlights   *Highlights `protobuf:"bytes,6,opt,name=Highlights,proto3" json:"Highlights,omitempty"`
	// contains filtered or unexported fields
}

func (*Hit) Descriptor deprecated

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

Deprecated: Use Hit.ProtoReflect.Descriptor instead.

func (*Hit) GetDescription

func (x *Hit) GetDescription() string

func (*Hit) GetHighlights

func (x *Hit) GetHighlights() *Highlights

func (*Hit) GetId

func (x *Hit) GetId() int32

func (*Hit) GetIdS

func (x *Hit) GetIdS() string

func (*Hit) GetMessageTexts

func (x *Hit) GetMessageTexts() []*MsgText

func (*Hit) GetName

func (x *Hit) GetName() string

func (*Hit) ProtoMessage

func (*Hit) ProtoMessage()

func (*Hit) ProtoReflect

func (x *Hit) ProtoReflect() protoreflect.Message

func (*Hit) Reset

func (x *Hit) Reset()

func (*Hit) String

func (x *Hit) String() string

type IndexChannel

type IndexChannel struct {
	Id           int32      `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	IdS          string     `protobuf:"bytes,2,opt,name=id_s,json=idS,proto3" json:"id_s,omitempty"`
	Name         string     `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description  string     `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	MessageTexts []*MsgText `protobuf:"bytes,5,rep,name=MessageTexts,proto3" json:"MessageTexts,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexChannel) Descriptor deprecated

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

Deprecated: Use IndexChannel.ProtoReflect.Descriptor instead.

func (*IndexChannel) GetDescription

func (x *IndexChannel) GetDescription() string

func (*IndexChannel) GetId

func (x *IndexChannel) GetId() int32

func (*IndexChannel) GetIdS

func (x *IndexChannel) GetIdS() string

func (*IndexChannel) GetMessageTexts

func (x *IndexChannel) GetMessageTexts() []*MsgText

func (*IndexChannel) GetName

func (x *IndexChannel) GetName() string

func (*IndexChannel) ProtoMessage

func (*IndexChannel) ProtoMessage()

func (*IndexChannel) ProtoReflect

func (x *IndexChannel) ProtoReflect() protoreflect.Message

func (*IndexChannel) Reset

func (x *IndexChannel) Reset()

func (*IndexChannel) String

func (x *IndexChannel) String() string

type MsgText

type MsgText struct {
	Mtext string `protobuf:"bytes,1,opt,name=mtext,proto3" json:"mtext,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgText) Descriptor deprecated

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

Deprecated: Use MsgText.ProtoReflect.Descriptor instead.

func (*MsgText) GetMtext

func (x *MsgText) GetMtext() string

func (*MsgText) ProtoMessage

func (*MsgText) ProtoMessage()

func (*MsgText) ProtoReflect

func (x *MsgText) ProtoReflect() protoreflect.Message

func (*MsgText) Reset

func (x *MsgText) Reset()

func (*MsgText) String

func (x *MsgText) String() string

type SearchResults

type SearchResults struct {
	Total int32  `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	Hits  []*Hit `protobuf:"bytes,2,rep,name=Hits,proto3" json:"Hits,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResults) Descriptor deprecated

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

Deprecated: Use SearchResults.ProtoReflect.Descriptor instead.

func (*SearchResults) GetHits

func (x *SearchResults) GetHits() []*Hit

func (*SearchResults) GetTotal

func (x *SearchResults) GetTotal() int32

func (*SearchResults) ProtoMessage

func (*SearchResults) ProtoMessage()

func (*SearchResults) ProtoReflect

func (x *SearchResults) ProtoReflect() protoreflect.Message

func (*SearchResults) Reset

func (x *SearchResults) Reset()

func (*SearchResults) String

func (x *SearchResults) String() string

type SearchServiceClient

type SearchServiceClient interface {
	Search(ctx context.Context, in *CreateSearchRequest, opts ...grpc.CallOption) (*SearchResults, 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.

type SearchServiceServer

type SearchServiceServer interface {
	Search(context.Context, *CreateSearchRequest) (*SearchResults, error)
	// contains filtered or unexported methods
}

SearchServiceServer is the server API for SearchService service. All implementations must embed UnimplementedSearchServiceServer for forward compatibility

type UnimplementedSearchServiceServer

type UnimplementedSearchServiceServer struct {
}

UnimplementedSearchServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedSearchServiceServer) Search

type UnsafeSearchServiceServer

type UnsafeSearchServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeSearchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SearchServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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