queryservice

package
v0.0.0-...-2404af6 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SearchType_name = map[int32]string{
		0: "SEARCH_TYPE_UNKNOWN",
		1: "SEARCH_TYPE_ID",
		2: "SEARCH_TYPE_TEXT",
		3: "SEARCH_TYPE_IMAGE",
	}
	SearchType_value = map[string]int32{
		"SEARCH_TYPE_UNKNOWN": 0,
		"SEARCH_TYPE_ID":      1,
		"SEARCH_TYPE_TEXT":    2,
		"SEARCH_TYPE_IMAGE":   3,
	}
)

Enum value maps for SearchType.

View Source
var File_navigator_api_queryservice_v1_service_proto protoreflect.FileDescriptor

Functions

func RegisterQueryServiceServer

func RegisterQueryServiceServer(s *grpc.Server, srv QueryServiceServer)

Types

type QueryServiceClient

type QueryServiceClient interface {
	SearchFiles(ctx context.Context, in *SearchFilesRequest, opts ...grpc.CallOption) (*SearchFilesResponse, error)
}

QueryServiceClient is the client API for QueryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type QueryServiceServer

type QueryServiceServer interface {
	SearchFiles(context.Context, *SearchFilesRequest) (*SearchFilesResponse, error)
}

QueryServiceServer is the server API for QueryService service.

type SearchFilesRequest

type SearchFilesRequest struct {
	Limit  int32      `protobuf:"varint,1,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset int32      `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
	Type   SearchType `protobuf:"varint,3,opt,name=type,proto3,enum=flowshot.navigator.api.queryservice.v1.SearchType" json:"type,omitempty"`
	Input  string     `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchFilesRequest) Descriptor deprecated

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

Deprecated: Use SearchFilesRequest.ProtoReflect.Descriptor instead.

func (*SearchFilesRequest) GetInput

func (x *SearchFilesRequest) GetInput() string

func (*SearchFilesRequest) GetLimit

func (x *SearchFilesRequest) GetLimit() int32

func (*SearchFilesRequest) GetOffset

func (x *SearchFilesRequest) GetOffset() int32

func (*SearchFilesRequest) GetType

func (x *SearchFilesRequest) GetType() SearchType

func (*SearchFilesRequest) ProtoMessage

func (*SearchFilesRequest) ProtoMessage()

func (*SearchFilesRequest) ProtoReflect

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

func (*SearchFilesRequest) Reset

func (x *SearchFilesRequest) Reset()

func (*SearchFilesRequest) String

func (x *SearchFilesRequest) String() string

type SearchFilesResponse

type SearchFilesResponse struct {
	Results []*SearchResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchFilesResponse) Descriptor deprecated

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

Deprecated: Use SearchFilesResponse.ProtoReflect.Descriptor instead.

func (*SearchFilesResponse) GetResults

func (x *SearchFilesResponse) GetResults() []*SearchResult

func (*SearchFilesResponse) ProtoMessage

func (*SearchFilesResponse) ProtoMessage()

func (*SearchFilesResponse) ProtoReflect

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

func (*SearchFilesResponse) Reset

func (x *SearchFilesResponse) Reset()

func (*SearchFilesResponse) String

func (x *SearchFilesResponse) String() string

type SearchResult

type SearchResult struct {
	Id          string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Description string  `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Key         string  `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	Mime        string  `protobuf:"bytes,4,opt,name=mime,proto3" json:"mime,omitempty"`
	Extension   string  `protobuf:"bytes,5,opt,name=extension,proto3" json:"extension,omitempty"`
	BelongsTo   string  `protobuf:"bytes,6,opt,name=belongsTo,proto3" json:"belongsTo,omitempty"`
	Certainty   float64 `protobuf:"fixed64,7,opt,name=certainty,proto3" json:"certainty,omitempty"`
	Distance    float64 `protobuf:"fixed64,8,opt,name=distance,proto3" json:"distance,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchResult) Descriptor deprecated

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

Deprecated: Use SearchResult.ProtoReflect.Descriptor instead.

func (*SearchResult) GetBelongsTo

func (x *SearchResult) GetBelongsTo() string

func (*SearchResult) GetCertainty

func (x *SearchResult) GetCertainty() float64

func (*SearchResult) GetDescription

func (x *SearchResult) GetDescription() string

func (*SearchResult) GetDistance

func (x *SearchResult) GetDistance() float64

func (*SearchResult) GetExtension

func (x *SearchResult) GetExtension() string

func (*SearchResult) GetId

func (x *SearchResult) GetId() string

func (*SearchResult) GetKey

func (x *SearchResult) GetKey() string

func (*SearchResult) GetMime

func (x *SearchResult) GetMime() string

func (*SearchResult) ProtoMessage

func (*SearchResult) ProtoMessage()

func (*SearchResult) ProtoReflect

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

func (*SearchResult) Reset

func (x *SearchResult) Reset()

func (*SearchResult) String

func (x *SearchResult) String() string

type SearchType

type SearchType int32
const (
	SearchType_SEARCH_TYPE_UNKNOWN SearchType = 0
	SearchType_SEARCH_TYPE_ID      SearchType = 1
	SearchType_SEARCH_TYPE_TEXT    SearchType = 2
	SearchType_SEARCH_TYPE_IMAGE   SearchType = 3
)

func (SearchType) Descriptor

func (SearchType) Descriptor() protoreflect.EnumDescriptor

func (SearchType) Enum

func (x SearchType) Enum() *SearchType

func (SearchType) EnumDescriptor deprecated

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

Deprecated: Use SearchType.Descriptor instead.

func (SearchType) Number

func (x SearchType) Number() protoreflect.EnumNumber

func (SearchType) String

func (x SearchType) String() string

func (SearchType) Type

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) SearchFiles

Jump to

Keyboard shortcuts

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