Documentation ¶
Index ¶
- Variables
- type AddRequest
- type AddResponse
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRequest) GetPayload() string
- func (x *DeleteRequest) GetTargetURL() string
- func (*DeleteRequest) ProtoMessage()
- func (x *DeleteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRequest) Reset()
- func (x *DeleteRequest) String() string
- type DeleteResponse
- type ListRequest
- func (*ListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListRequest) GetCorpus() ListRequest_Corpus
- func (x *ListRequest) GetPageNumber() int32
- func (x *ListRequest) GetQuery() string
- func (x *ListRequest) GetResultPerPage() int32
- func (*ListRequest) ProtoMessage()
- func (x *ListRequest) ProtoReflect() protoreflect.Message
- func (x *ListRequest) Reset()
- func (x *ListRequest) String() string
- type ListRequest_Corpus
- func (ListRequest_Corpus) Descriptor() protoreflect.EnumDescriptor
- func (x ListRequest_Corpus) Enum() *ListRequest_Corpus
- func (ListRequest_Corpus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ListRequest_Corpus) Number() protoreflect.EnumNumber
- func (x ListRequest_Corpus) String() string
- func (ListRequest_Corpus) Type() protoreflect.EnumType
- type ListResponse
- func (*ListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListResponse) GetResults() []*Result
- func (x *ListResponse) GetUsers() map[string]*User
- func (*ListResponse) ProtoMessage()
- func (x *ListResponse) ProtoReflect() protoreflect.Message
- func (x *ListResponse) Reset()
- func (x *ListResponse) String() string
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetSnippets() []string
- func (x *Result) GetTitle() string
- func (x *Result) GetUrl() string
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- type StatsRequest
- type StatsResponse
- func (*StatsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StatsResponse) GetFailures() int64
- func (x *StatsResponse) GetItems() int64
- func (x *StatsResponse) GetUsed() int64
- func (*StatsResponse) ProtoMessage()
- func (x *StatsResponse) ProtoReflect() protoreflect.Message
- func (x *StatsResponse) Reset()
- func (x *StatsResponse) String() string
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ListRequest_Corpus_name = map[int32]string{ 0: "UNIVERSAL", 1: "WEB", 2: "IMAGES", 3: "LOCAL", 4: "NEWS", 5: "PRODUCTS", 6: "VIDEO", } ListRequest_Corpus_value = map[string]int32{ "UNIVERSAL": 0, "WEB": 1, "IMAGES": 2, "LOCAL": 3, "NEWS": 4, "PRODUCTS": 5, "VIDEO": 6, } )
Enum value maps for ListRequest_Corpus.
View Source
var File_swagger_example_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AddRequest ¶
type AddRequest struct { Payload string `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` UserID int32 `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*AddRequest) Descriptor
deprecated
func (*AddRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.
func (*AddRequest) GetPayload ¶
func (x *AddRequest) GetPayload() string
func (*AddRequest) GetUserID ¶
func (x *AddRequest) GetUserID() int32
func (*AddRequest) ProtoMessage ¶
func (*AddRequest) ProtoMessage()
func (*AddRequest) ProtoReflect ¶
func (x *AddRequest) ProtoReflect() protoreflect.Message
func (*AddRequest) Reset ¶
func (x *AddRequest) Reset()
func (*AddRequest) String ¶
func (x *AddRequest) String() string
type AddResponse ¶
type AddResponse struct { Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"` // contains filtered or unexported fields }
func (*AddResponse) Descriptor
deprecated
func (*AddResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.
func (*AddResponse) GetSuccessful ¶
func (x *AddResponse) GetSuccessful() bool
func (*AddResponse) ProtoMessage ¶
func (*AddResponse) ProtoMessage()
func (*AddResponse) ProtoReflect ¶
func (x *AddResponse) ProtoReflect() protoreflect.Message
func (*AddResponse) Reset ¶
func (x *AddResponse) Reset()
func (*AddResponse) String ¶
func (x *AddResponse) String() string
type DeleteRequest ¶
type DeleteRequest struct { TargetURL string `protobuf:"bytes,1,opt,name=targetURL,proto3" json:"targetURL,omitempty"` Payload string `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetPayload ¶
func (x *DeleteRequest) GetPayload() string
func (*DeleteRequest) GetTargetURL ¶
func (x *DeleteRequest) GetTargetURL() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct { Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"` // contains filtered or unexported fields }
func (*DeleteResponse) Descriptor
deprecated
func (*DeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) GetSuccessful ¶
func (x *DeleteResponse) GetSuccessful() bool
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) ProtoReflect ¶
func (x *DeleteResponse) ProtoReflect() protoreflect.Message
func (*DeleteResponse) Reset ¶
func (x *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (x *DeleteResponse) String() string
type ListRequest ¶
type ListRequest struct { Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` PageNumber int32 `protobuf:"varint,2,opt,name=page_number,json=pageNumber,proto3" json:"page_number,omitempty"` ResultPerPage int32 `protobuf:"varint,3,opt,name=result_per_page,json=resultPerPage,proto3" json:"result_per_page,omitempty"` Corpus ListRequest_Corpus `protobuf:"varint,4,opt,name=corpus,proto3,enum=swagger.ListRequest_Corpus" json:"corpus,omitempty"` // contains filtered or unexported fields }
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) GetCorpus ¶
func (x *ListRequest) GetCorpus() ListRequest_Corpus
func (*ListRequest) GetPageNumber ¶
func (x *ListRequest) GetPageNumber() int32
func (*ListRequest) GetQuery ¶
func (x *ListRequest) GetQuery() string
func (*ListRequest) GetResultPerPage ¶
func (x *ListRequest) GetResultPerPage() int32
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListRequest_Corpus ¶
type ListRequest_Corpus int32
const ( ListRequest_UNIVERSAL ListRequest_Corpus = 0 ListRequest_WEB ListRequest_Corpus = 1 ListRequest_IMAGES ListRequest_Corpus = 2 ListRequest_LOCAL ListRequest_Corpus = 3 ListRequest_NEWS ListRequest_Corpus = 4 ListRequest_PRODUCTS ListRequest_Corpus = 5 ListRequest_VIDEO ListRequest_Corpus = 6 )
func (ListRequest_Corpus) Descriptor ¶
func (ListRequest_Corpus) Descriptor() protoreflect.EnumDescriptor
func (ListRequest_Corpus) Enum ¶
func (x ListRequest_Corpus) Enum() *ListRequest_Corpus
func (ListRequest_Corpus) EnumDescriptor
deprecated
func (ListRequest_Corpus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ListRequest_Corpus.Descriptor instead.
func (ListRequest_Corpus) Number ¶
func (x ListRequest_Corpus) Number() protoreflect.EnumNumber
func (ListRequest_Corpus) String ¶
func (x ListRequest_Corpus) String() string
func (ListRequest_Corpus) Type ¶
func (ListRequest_Corpus) Type() protoreflect.EnumType
type ListResponse ¶
type ListResponse struct { Results []*Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` Users map[string]*User `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetResults ¶
func (x *ListResponse) GetResults() []*Result
func (*ListResponse) GetUsers ¶
func (x *ListResponse) GetUsers() map[string]*User
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type Result ¶
type 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"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) GetSnippets ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type StatsRequest ¶
type StatsRequest struct {
// contains filtered or unexported fields
}
This is a status request
func (*StatsRequest) Descriptor
deprecated
func (*StatsRequest) Descriptor() ([]byte, []int)
Deprecated: Use StatsRequest.ProtoReflect.Descriptor instead.
func (*StatsRequest) ProtoMessage ¶
func (*StatsRequest) ProtoMessage()
func (*StatsRequest) ProtoReflect ¶
func (x *StatsRequest) ProtoReflect() protoreflect.Message
func (*StatsRequest) Reset ¶
func (x *StatsRequest) Reset()
func (*StatsRequest) String ¶
func (x *StatsRequest) String() string
type StatsResponse ¶
type StatsResponse struct { // number of items included in the store Items int64 `protobuf:"varint,1,opt,name=items,proto3" json:"items,omitempty"` // number of used items Used int64 `protobuf:"varint,2,opt,name=used,proto3" json:"used,omitempty"` // list of request failures Failures int64 `protobuf:"varint,3,opt,name=failures,proto3" json:"failures,omitempty"` // contains filtered or unexported fields }
func (*StatsResponse) Descriptor
deprecated
func (*StatsResponse) Descriptor() ([]byte, []int)
Deprecated: Use StatsResponse.ProtoReflect.Descriptor instead.
func (*StatsResponse) GetFailures ¶
func (x *StatsResponse) GetFailures() int64
func (*StatsResponse) GetItems ¶
func (x *StatsResponse) GetItems() int64
func (*StatsResponse) GetUsed ¶
func (x *StatsResponse) GetUsed() int64
func (*StatsResponse) ProtoMessage ¶
func (*StatsResponse) ProtoMessage()
func (*StatsResponse) ProtoReflect ¶
func (x *StatsResponse) ProtoReflect() protoreflect.Message
func (*StatsResponse) Reset ¶
func (x *StatsResponse) Reset()
func (*StatsResponse) String ¶
func (x *StatsResponse) String() string
type User ¶
type User struct { Uid int32 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.