Documentation
¶
Overview ¶
Package protobuf is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterIndexHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterIndexHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IndexClient) error
- func RegisterIndexHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterIndexHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IndexServer) error
- func RegisterIndexServer(s *grpc.Server, srv IndexServer)
- type BulkDeleteRequest
- func (*BulkDeleteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BulkDeleteRequest) GetRequests() []*DeleteRequest
- func (*BulkDeleteRequest) ProtoMessage()
- func (x *BulkDeleteRequest) ProtoReflect() protoreflect.Message
- func (x *BulkDeleteRequest) Reset()
- func (x *BulkDeleteRequest) String() string
- type BulkDeleteResponse
- func (*BulkDeleteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BulkDeleteResponse) GetCount() int32
- func (*BulkDeleteResponse) ProtoMessage()
- func (x *BulkDeleteResponse) ProtoReflect() protoreflect.Message
- func (x *BulkDeleteResponse) Reset()
- func (x *BulkDeleteResponse) String() string
- type BulkIndexRequest
- type BulkIndexResponse
- type Cluster
- type ClusterResponse
- type DeleteMetadataRequest
- func (*DeleteMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMetadataRequest) GetId() string
- func (*DeleteMetadataRequest) ProtoMessage()
- func (x *DeleteMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMetadataRequest) Reset()
- func (x *DeleteMetadataRequest) String() string
- type DeleteRequest
- type Document
- type Event
- type Event_Type
- type GetRequest
- type GetResponse
- type IndexClient
- type IndexServer
- type Index_WatchClient
- type Index_WatchServer
- type JoinRequest
- type LeaveRequest
- type LivenessCheckResponse
- func (*LivenessCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LivenessCheckResponse) GetAlive() bool
- func (*LivenessCheckResponse) ProtoMessage()
- func (x *LivenessCheckResponse) ProtoReflect() protoreflect.Message
- func (x *LivenessCheckResponse) Reset()
- func (x *LivenessCheckResponse) String() string
- type MappingResponse
- type Metadata
- type MetricsResponse
- type Node
- type NodeResponse
- type ReadinessCheckResponse
- func (*ReadinessCheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadinessCheckResponse) GetReady() bool
- func (*ReadinessCheckResponse) ProtoMessage()
- func (x *ReadinessCheckResponse) ProtoReflect() protoreflect.Message
- func (x *ReadinessCheckResponse) Reset()
- func (x *ReadinessCheckResponse) String() string
- type SearchRequest
- type SearchResponse
- type SetMetadataRequest
- func (*SetMetadataRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetMetadataRequest) GetId() string
- func (x *SetMetadataRequest) GetMetadata() *Metadata
- func (*SetMetadataRequest) ProtoMessage()
- func (x *SetMetadataRequest) ProtoReflect() protoreflect.Message
- func (x *SetMetadataRequest) Reset()
- func (x *SetMetadataRequest) String() string
- type SetRequest
- type UnimplementedIndexServer
- func (*UnimplementedIndexServer) BulkDelete(context.Context, *BulkDeleteRequest) (*BulkDeleteResponse, error)
- func (*UnimplementedIndexServer) BulkIndex(context.Context, *BulkIndexRequest) (*BulkIndexResponse, error)
- func (*UnimplementedIndexServer) Cluster(context.Context, *empty.Empty) (*ClusterResponse, error)
- func (*UnimplementedIndexServer) Delete(context.Context, *DeleteRequest) (*empty.Empty, error)
- func (*UnimplementedIndexServer) Get(context.Context, *GetRequest) (*GetResponse, error)
- func (*UnimplementedIndexServer) Join(context.Context, *JoinRequest) (*empty.Empty, error)
- func (*UnimplementedIndexServer) Leave(context.Context, *LeaveRequest) (*empty.Empty, error)
- func (*UnimplementedIndexServer) LivenessCheck(context.Context, *empty.Empty) (*LivenessCheckResponse, error)
- func (*UnimplementedIndexServer) Mapping(context.Context, *empty.Empty) (*MappingResponse, error)
- func (*UnimplementedIndexServer) Metrics(context.Context, *empty.Empty) (*MetricsResponse, error)
- func (*UnimplementedIndexServer) Node(context.Context, *empty.Empty) (*NodeResponse, error)
- func (*UnimplementedIndexServer) ReadinessCheck(context.Context, *empty.Empty) (*ReadinessCheckResponse, error)
- func (*UnimplementedIndexServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
- func (*UnimplementedIndexServer) Set(context.Context, *SetRequest) (*empty.Empty, error)
- func (*UnimplementedIndexServer) Snapshot(context.Context, *empty.Empty) (*empty.Empty, error)
- func (*UnimplementedIndexServer) Watch(*empty.Empty, Index_WatchServer) error
- type WatchResponse
Constants ¶
This section is empty.
Variables ¶
var ( Event_Type_name = map[int32]string{ 0: "Unknown", 1: "Join", 2: "Leave", 3: "Set", 4: "Delete", 5: "BulkIndex", 6: "BulkDelete", } Event_Type_value = map[string]int32{ "Unknown": 0, "Join": 1, "Leave": 2, "Set": 3, "Delete": 4, "BulkIndex": 5, "BulkDelete": 6, } )
Enum value maps for Event_Type.
var File_protobuf_index_proto protoreflect.FileDescriptor
Functions ¶
func RegisterIndexHandler ¶ added in v0.9.0
RegisterIndexHandler registers the http handlers for service Index to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterIndexHandlerClient ¶ added in v0.9.0
func RegisterIndexHandlerClient(ctx context.Context, mux *runtime.ServeMux, client IndexClient) error
RegisterIndexHandlerClient registers the http handlers for service Index to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "IndexClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "IndexClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "IndexClient" to call the correct interceptors.
func RegisterIndexHandlerFromEndpoint ¶ added in v0.9.0
func RegisterIndexHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterIndexHandlerFromEndpoint is same as RegisterIndexHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterIndexHandlerServer ¶ added in v0.9.0
func RegisterIndexHandlerServer(ctx context.Context, mux *runtime.ServeMux, server IndexServer) error
RegisterIndexHandlerServer registers the http handlers for service Index to "mux". UnaryRPC :call IndexServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterIndexServer ¶ added in v0.9.0
func RegisterIndexServer(s *grpc.Server, srv IndexServer)
Types ¶
type BulkDeleteRequest ¶ added in v0.9.0
type BulkDeleteRequest struct { Requests []*DeleteRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
func (*BulkDeleteRequest) Descriptor
deprecated
added in
v0.9.0
func (*BulkDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use BulkDeleteRequest.ProtoReflect.Descriptor instead.
func (*BulkDeleteRequest) GetRequests ¶ added in v0.9.0
func (x *BulkDeleteRequest) GetRequests() []*DeleteRequest
func (*BulkDeleteRequest) ProtoMessage ¶ added in v0.9.0
func (*BulkDeleteRequest) ProtoMessage()
func (*BulkDeleteRequest) ProtoReflect ¶ added in v0.9.1
func (x *BulkDeleteRequest) ProtoReflect() protoreflect.Message
func (*BulkDeleteRequest) Reset ¶ added in v0.9.0
func (x *BulkDeleteRequest) Reset()
func (*BulkDeleteRequest) String ¶ added in v0.9.0
func (x *BulkDeleteRequest) String() string
type BulkDeleteResponse ¶ added in v0.9.0
type BulkDeleteResponse struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*BulkDeleteResponse) Descriptor
deprecated
added in
v0.9.0
func (*BulkDeleteResponse) Descriptor() ([]byte, []int)
Deprecated: Use BulkDeleteResponse.ProtoReflect.Descriptor instead.
func (*BulkDeleteResponse) GetCount ¶ added in v0.9.0
func (x *BulkDeleteResponse) GetCount() int32
func (*BulkDeleteResponse) ProtoMessage ¶ added in v0.9.0
func (*BulkDeleteResponse) ProtoMessage()
func (*BulkDeleteResponse) ProtoReflect ¶ added in v0.9.1
func (x *BulkDeleteResponse) ProtoReflect() protoreflect.Message
func (*BulkDeleteResponse) Reset ¶ added in v0.9.0
func (x *BulkDeleteResponse) Reset()
func (*BulkDeleteResponse) String ¶ added in v0.9.0
func (x *BulkDeleteResponse) String() string
type BulkIndexRequest ¶ added in v0.9.0
type BulkIndexRequest struct { Requests []*SetRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
func (*BulkIndexRequest) Descriptor
deprecated
added in
v0.9.0
func (*BulkIndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use BulkIndexRequest.ProtoReflect.Descriptor instead.
func (*BulkIndexRequest) GetRequests ¶ added in v0.9.0
func (x *BulkIndexRequest) GetRequests() []*SetRequest
func (*BulkIndexRequest) ProtoMessage ¶ added in v0.9.0
func (*BulkIndexRequest) ProtoMessage()
func (*BulkIndexRequest) ProtoReflect ¶ added in v0.9.1
func (x *BulkIndexRequest) ProtoReflect() protoreflect.Message
func (*BulkIndexRequest) Reset ¶ added in v0.9.0
func (x *BulkIndexRequest) Reset()
func (*BulkIndexRequest) String ¶ added in v0.9.0
func (x *BulkIndexRequest) String() string
type BulkIndexResponse ¶ added in v0.9.0
type BulkIndexResponse struct { Count int32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*BulkIndexResponse) Descriptor
deprecated
added in
v0.9.0
func (*BulkIndexResponse) Descriptor() ([]byte, []int)
Deprecated: Use BulkIndexResponse.ProtoReflect.Descriptor instead.
func (*BulkIndexResponse) GetCount ¶ added in v0.9.0
func (x *BulkIndexResponse) GetCount() int32
func (*BulkIndexResponse) ProtoMessage ¶ added in v0.9.0
func (*BulkIndexResponse) ProtoMessage()
func (*BulkIndexResponse) ProtoReflect ¶ added in v0.9.1
func (x *BulkIndexResponse) ProtoReflect() protoreflect.Message
func (*BulkIndexResponse) Reset ¶ added in v0.9.0
func (x *BulkIndexResponse) Reset()
func (*BulkIndexResponse) String ¶ added in v0.9.0
func (x *BulkIndexResponse) String() string
type Cluster ¶ added in v0.9.0
type Cluster struct { Nodes map[string]*Node `` /* 151-byte string literal not displayed */ Leader string `protobuf:"bytes,2,opt,name=leader,proto3" json:"leader,omitempty"` // contains filtered or unexported fields }
func (*Cluster) Descriptor
deprecated
added in
v0.9.0
func (*Cluster) ProtoMessage ¶ added in v0.9.0
func (*Cluster) ProtoMessage()
func (*Cluster) ProtoReflect ¶ added in v0.9.1
func (x *Cluster) ProtoReflect() protoreflect.Message
type ClusterResponse ¶ added in v0.9.0
type ClusterResponse struct { Cluster *Cluster `protobuf:"bytes,1,opt,name=cluster,proto3" json:"cluster,omitempty"` // contains filtered or unexported fields }
func (*ClusterResponse) Descriptor
deprecated
added in
v0.9.0
func (*ClusterResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClusterResponse.ProtoReflect.Descriptor instead.
func (*ClusterResponse) GetCluster ¶ added in v0.9.0
func (x *ClusterResponse) GetCluster() *Cluster
func (*ClusterResponse) ProtoMessage ¶ added in v0.9.0
func (*ClusterResponse) ProtoMessage()
func (*ClusterResponse) ProtoReflect ¶ added in v0.9.1
func (x *ClusterResponse) ProtoReflect() protoreflect.Message
func (*ClusterResponse) Reset ¶ added in v0.9.0
func (x *ClusterResponse) Reset()
func (*ClusterResponse) String ¶ added in v0.9.0
func (x *ClusterResponse) String() string
type DeleteMetadataRequest ¶ added in v0.9.0
type DeleteMetadataRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteMetadataRequest) Descriptor
deprecated
added in
v0.9.0
func (*DeleteMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMetadataRequest.ProtoReflect.Descriptor instead.
func (*DeleteMetadataRequest) GetId ¶ added in v0.9.0
func (x *DeleteMetadataRequest) GetId() string
func (*DeleteMetadataRequest) ProtoMessage ¶ added in v0.9.0
func (*DeleteMetadataRequest) ProtoMessage()
func (*DeleteMetadataRequest) ProtoReflect ¶ added in v0.9.1
func (x *DeleteMetadataRequest) ProtoReflect() protoreflect.Message
func (*DeleteMetadataRequest) Reset ¶ added in v0.9.0
func (x *DeleteMetadataRequest) Reset()
func (*DeleteMetadataRequest) String ¶ added in v0.9.0
func (x *DeleteMetadataRequest) String() string
type DeleteRequest ¶
type DeleteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteRequest) Descriptor
deprecated
func (*DeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) GetId ¶
func (x *DeleteRequest) GetId() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) ProtoReflect ¶ added in v0.9.1
func (x *DeleteRequest) ProtoReflect() protoreflect.Message
func (*DeleteRequest) Reset ¶
func (x *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (x *DeleteRequest) String() string
type Document ¶
type Document struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Fields []byte `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*Document) Descriptor
deprecated
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) ProtoReflect ¶ added in v0.9.1
func (x *Document) ProtoReflect() protoreflect.Message
type Event ¶ added in v0.9.0
type Event struct { Type Event_Type `protobuf:"varint,1,opt,name=type,proto3,enum=index.Event_Type" json:"type,omitempty"` Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Event) Descriptor
deprecated
added in
v0.9.0
func (*Event) GetType ¶ added in v0.9.0
func (x *Event) GetType() Event_Type
func (*Event) ProtoMessage ¶ added in v0.9.0
func (*Event) ProtoMessage()
func (*Event) ProtoReflect ¶ added in v0.9.1
func (x *Event) ProtoReflect() protoreflect.Message
type Event_Type ¶ added in v0.9.0
type Event_Type int32
const ( Event_Unknown Event_Type = 0 Event_Join Event_Type = 1 Event_Leave Event_Type = 2 Event_Set Event_Type = 3 Event_Delete Event_Type = 4 Event_BulkIndex Event_Type = 5 Event_BulkDelete Event_Type = 6 )
func (Event_Type) Descriptor ¶ added in v0.9.1
func (Event_Type) Descriptor() protoreflect.EnumDescriptor
func (Event_Type) Enum ¶ added in v0.9.1
func (x Event_Type) Enum() *Event_Type
func (Event_Type) EnumDescriptor
deprecated
added in
v0.9.0
func (Event_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Event_Type.Descriptor instead.
func (Event_Type) Number ¶ added in v0.9.1
func (x Event_Type) Number() protoreflect.EnumNumber
func (Event_Type) String ¶ added in v0.9.0
func (x Event_Type) String() string
func (Event_Type) Type ¶ added in v0.9.1
func (Event_Type) Type() protoreflect.EnumType
type GetRequest ¶
type GetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetRequest) Descriptor
deprecated
func (*GetRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) GetId ¶
func (x *GetRequest) GetId() string
func (*GetRequest) ProtoMessage ¶
func (*GetRequest) ProtoMessage()
func (*GetRequest) ProtoReflect ¶ added in v0.9.1
func (x *GetRequest) ProtoReflect() protoreflect.Message
func (*GetRequest) Reset ¶
func (x *GetRequest) Reset()
func (*GetRequest) String ¶
func (x *GetRequest) String() string
type GetResponse ¶
type GetResponse struct { Fields []byte `protobuf:"bytes,1,opt,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*GetResponse) Descriptor
deprecated
func (*GetResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) GetFields ¶
func (x *GetResponse) GetFields() []byte
func (*GetResponse) ProtoMessage ¶
func (*GetResponse) ProtoMessage()
func (*GetResponse) ProtoReflect ¶ added in v0.9.1
func (x *GetResponse) ProtoReflect() protoreflect.Message
func (*GetResponse) Reset ¶
func (x *GetResponse) Reset()
func (*GetResponse) String ¶
func (x *GetResponse) String() string
type IndexClient ¶ added in v0.9.0
type IndexClient interface { LivenessCheck(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LivenessCheckResponse, error) ReadinessCheck(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ReadinessCheckResponse, error) Node(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NodeResponse, error) Join(ctx context.Context, in *JoinRequest, opts ...grpc.CallOption) (*empty.Empty, error) Cluster(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ClusterResponse, error) Leave(ctx context.Context, in *LeaveRequest, opts ...grpc.CallOption) (*empty.Empty, error) Snapshot(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) BulkIndex(ctx context.Context, in *BulkIndexRequest, opts ...grpc.CallOption) (*BulkIndexResponse, error) BulkDelete(ctx context.Context, in *BulkDeleteRequest, opts ...grpc.CallOption) (*BulkDeleteResponse, error) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) Set(ctx context.Context, in *SetRequest, opts ...grpc.CallOption) (*empty.Empty, error) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*empty.Empty, error) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) Mapping(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MappingResponse, error) Watch(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (Index_WatchClient, error) Metrics(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*MetricsResponse, error) }
IndexClient is the client API for Index service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewIndexClient ¶ added in v0.9.0
func NewIndexClient(cc grpc.ClientConnInterface) IndexClient
type IndexServer ¶ added in v0.9.0
type IndexServer interface { LivenessCheck(context.Context, *empty.Empty) (*LivenessCheckResponse, error) ReadinessCheck(context.Context, *empty.Empty) (*ReadinessCheckResponse, error) Node(context.Context, *empty.Empty) (*NodeResponse, error) Join(context.Context, *JoinRequest) (*empty.Empty, error) Cluster(context.Context, *empty.Empty) (*ClusterResponse, error) Leave(context.Context, *LeaveRequest) (*empty.Empty, error) Snapshot(context.Context, *empty.Empty) (*empty.Empty, error) BulkIndex(context.Context, *BulkIndexRequest) (*BulkIndexResponse, error) BulkDelete(context.Context, *BulkDeleteRequest) (*BulkDeleteResponse, error) Get(context.Context, *GetRequest) (*GetResponse, error) Set(context.Context, *SetRequest) (*empty.Empty, error) Delete(context.Context, *DeleteRequest) (*empty.Empty, error) Search(context.Context, *SearchRequest) (*SearchResponse, error) Mapping(context.Context, *empty.Empty) (*MappingResponse, error) Watch(*empty.Empty, Index_WatchServer) error Metrics(context.Context, *empty.Empty) (*MetricsResponse, error) }
IndexServer is the server API for Index service.
type Index_WatchClient ¶ added in v0.9.0
type Index_WatchClient interface { Recv() (*WatchResponse, error) grpc.ClientStream }
type Index_WatchServer ¶ added in v0.9.0
type Index_WatchServer interface { Send(*WatchResponse) error grpc.ServerStream }
type JoinRequest ¶
type JoinRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Node *Node `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` // contains filtered or unexported fields }
func (*JoinRequest) Descriptor
deprecated
func (*JoinRequest) Descriptor() ([]byte, []int)
Deprecated: Use JoinRequest.ProtoReflect.Descriptor instead.
func (*JoinRequest) GetId ¶ added in v0.9.0
func (x *JoinRequest) GetId() string
func (*JoinRequest) GetNode ¶ added in v0.9.0
func (x *JoinRequest) GetNode() *Node
func (*JoinRequest) ProtoMessage ¶
func (*JoinRequest) ProtoMessage()
func (*JoinRequest) ProtoReflect ¶ added in v0.9.1
func (x *JoinRequest) ProtoReflect() protoreflect.Message
func (*JoinRequest) Reset ¶
func (x *JoinRequest) Reset()
func (*JoinRequest) String ¶
func (x *JoinRequest) String() string
type LeaveRequest ¶
type LeaveRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*LeaveRequest) Descriptor
deprecated
func (*LeaveRequest) Descriptor() ([]byte, []int)
Deprecated: Use LeaveRequest.ProtoReflect.Descriptor instead.
func (*LeaveRequest) GetId ¶ added in v0.9.0
func (x *LeaveRequest) GetId() string
func (*LeaveRequest) ProtoMessage ¶
func (*LeaveRequest) ProtoMessage()
func (*LeaveRequest) ProtoReflect ¶ added in v0.9.1
func (x *LeaveRequest) ProtoReflect() protoreflect.Message
func (*LeaveRequest) Reset ¶
func (x *LeaveRequest) Reset()
func (*LeaveRequest) String ¶
func (x *LeaveRequest) String() string
type LivenessCheckResponse ¶ added in v0.9.0
type LivenessCheckResponse struct { Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"` // contains filtered or unexported fields }
func (*LivenessCheckResponse) Descriptor
deprecated
added in
v0.9.0
func (*LivenessCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use LivenessCheckResponse.ProtoReflect.Descriptor instead.
func (*LivenessCheckResponse) GetAlive ¶ added in v0.9.0
func (x *LivenessCheckResponse) GetAlive() bool
func (*LivenessCheckResponse) ProtoMessage ¶ added in v0.9.0
func (*LivenessCheckResponse) ProtoMessage()
func (*LivenessCheckResponse) ProtoReflect ¶ added in v0.9.1
func (x *LivenessCheckResponse) ProtoReflect() protoreflect.Message
func (*LivenessCheckResponse) Reset ¶ added in v0.9.0
func (x *LivenessCheckResponse) Reset()
func (*LivenessCheckResponse) String ¶ added in v0.9.0
func (x *LivenessCheckResponse) String() string
type MappingResponse ¶ added in v0.9.0
type MappingResponse struct { Mapping []byte `protobuf:"bytes,1,opt,name=mapping,proto3" json:"mapping,omitempty"` // contains filtered or unexported fields }
func (*MappingResponse) Descriptor
deprecated
added in
v0.9.0
func (*MappingResponse) Descriptor() ([]byte, []int)
Deprecated: Use MappingResponse.ProtoReflect.Descriptor instead.
func (*MappingResponse) GetMapping ¶ added in v0.9.0
func (x *MappingResponse) GetMapping() []byte
func (*MappingResponse) ProtoMessage ¶ added in v0.9.0
func (*MappingResponse) ProtoMessage()
func (*MappingResponse) ProtoReflect ¶ added in v0.9.1
func (x *MappingResponse) ProtoReflect() protoreflect.Message
func (*MappingResponse) Reset ¶ added in v0.9.0
func (x *MappingResponse) Reset()
func (*MappingResponse) String ¶ added in v0.9.0
func (x *MappingResponse) String() string
type Metadata ¶
type Metadata struct { GrpcAddress string `protobuf:"bytes,1,opt,name=grpc_address,json=grpcAddress,proto3" json:"grpc_address,omitempty"` HttpAddress string `protobuf:"bytes,2,opt,name=http_address,json=httpAddress,proto3" json:"http_address,omitempty"` // contains filtered or unexported fields }
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetGrpcAddress ¶
func (*Metadata) GetHttpAddress ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v0.9.1
func (x *Metadata) ProtoReflect() protoreflect.Message
type MetricsResponse ¶ added in v0.9.0
type MetricsResponse struct { Metrics []byte `protobuf:"bytes,1,opt,name=metrics,proto3" json:"metrics,omitempty"` // contains filtered or unexported fields }
func (*MetricsResponse) Descriptor
deprecated
added in
v0.9.0
func (*MetricsResponse) Descriptor() ([]byte, []int)
Deprecated: Use MetricsResponse.ProtoReflect.Descriptor instead.
func (*MetricsResponse) GetMetrics ¶ added in v0.9.0
func (x *MetricsResponse) GetMetrics() []byte
func (*MetricsResponse) ProtoMessage ¶ added in v0.9.0
func (*MetricsResponse) ProtoMessage()
func (*MetricsResponse) ProtoReflect ¶ added in v0.9.1
func (x *MetricsResponse) ProtoReflect() protoreflect.Message
func (*MetricsResponse) Reset ¶ added in v0.9.0
func (x *MetricsResponse) Reset()
func (*MetricsResponse) String ¶ added in v0.9.0
func (x *MetricsResponse) String() string
type Node ¶ added in v0.9.0
type Node struct { RaftAddress string `protobuf:"bytes,1,opt,name=raft_address,json=raftAddress,proto3" json:"raft_address,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*Node) Descriptor
deprecated
added in
v0.9.0
func (*Node) GetMetadata ¶ added in v0.9.0
func (*Node) GetRaftAddress ¶ added in v0.9.0
func (*Node) ProtoMessage ¶ added in v0.9.0
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶ added in v0.9.1
func (x *Node) ProtoReflect() protoreflect.Message
type NodeResponse ¶ added in v0.9.0
type NodeResponse struct { Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"` // contains filtered or unexported fields }
func (*NodeResponse) Descriptor
deprecated
added in
v0.9.0
func (*NodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use NodeResponse.ProtoReflect.Descriptor instead.
func (*NodeResponse) GetNode ¶ added in v0.9.0
func (x *NodeResponse) GetNode() *Node
func (*NodeResponse) ProtoMessage ¶ added in v0.9.0
func (*NodeResponse) ProtoMessage()
func (*NodeResponse) ProtoReflect ¶ added in v0.9.1
func (x *NodeResponse) ProtoReflect() protoreflect.Message
func (*NodeResponse) Reset ¶ added in v0.9.0
func (x *NodeResponse) Reset()
func (*NodeResponse) String ¶ added in v0.9.0
func (x *NodeResponse) String() string
type ReadinessCheckResponse ¶ added in v0.9.0
type ReadinessCheckResponse struct { Ready bool `protobuf:"varint,1,opt,name=ready,proto3" json:"ready,omitempty"` // contains filtered or unexported fields }
func (*ReadinessCheckResponse) Descriptor
deprecated
added in
v0.9.0
func (*ReadinessCheckResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadinessCheckResponse.ProtoReflect.Descriptor instead.
func (*ReadinessCheckResponse) GetReady ¶ added in v0.9.0
func (x *ReadinessCheckResponse) GetReady() bool
func (*ReadinessCheckResponse) ProtoMessage ¶ added in v0.9.0
func (*ReadinessCheckResponse) ProtoMessage()
func (*ReadinessCheckResponse) ProtoReflect ¶ added in v0.9.1
func (x *ReadinessCheckResponse) ProtoReflect() protoreflect.Message
func (*ReadinessCheckResponse) Reset ¶ added in v0.9.0
func (x *ReadinessCheckResponse) Reset()
func (*ReadinessCheckResponse) String ¶ added in v0.9.0
func (x *ReadinessCheckResponse) String() string
type SearchRequest ¶
type SearchRequest struct { SearchRequest []byte `protobuf:"bytes,1,opt,name=search_request,json=searchRequest,proto3" json:"search_request,omitempty"` // contains filtered or unexported fields }
func (*SearchRequest) Descriptor
deprecated
func (*SearchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) GetSearchRequest ¶
func (x *SearchRequest) GetSearchRequest() []byte
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) ProtoReflect ¶ added in v0.9.1
func (x *SearchRequest) ProtoReflect() protoreflect.Message
func (*SearchRequest) Reset ¶
func (x *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (x *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct { SearchResult []byte `protobuf:"bytes,1,opt,name=search_result,json=searchResult,proto3" json:"search_result,omitempty"` // contains filtered or unexported fields }
func (*SearchResponse) Descriptor
deprecated
func (*SearchResponse) Descriptor() ([]byte, []int)
Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) GetSearchResult ¶
func (x *SearchResponse) GetSearchResult() []byte
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) ProtoReflect ¶ added in v0.9.1
func (x *SearchResponse) ProtoReflect() protoreflect.Message
func (*SearchResponse) Reset ¶
func (x *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (x *SearchResponse) String() string
type SetMetadataRequest ¶ added in v0.9.0
type SetMetadataRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*SetMetadataRequest) Descriptor
deprecated
added in
v0.9.0
func (*SetMetadataRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetMetadataRequest.ProtoReflect.Descriptor instead.
func (*SetMetadataRequest) GetId ¶ added in v0.9.0
func (x *SetMetadataRequest) GetId() string
func (*SetMetadataRequest) GetMetadata ¶ added in v0.9.0
func (x *SetMetadataRequest) GetMetadata() *Metadata
func (*SetMetadataRequest) ProtoMessage ¶ added in v0.9.0
func (*SetMetadataRequest) ProtoMessage()
func (*SetMetadataRequest) ProtoReflect ¶ added in v0.9.1
func (x *SetMetadataRequest) ProtoReflect() protoreflect.Message
func (*SetMetadataRequest) Reset ¶ added in v0.9.0
func (x *SetMetadataRequest) Reset()
func (*SetMetadataRequest) String ¶ added in v0.9.0
func (x *SetMetadataRequest) String() string
type SetRequest ¶ added in v0.9.0
type SetRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Fields []byte `protobuf:"bytes,2,opt,name=fields,proto3" json:"fields,omitempty"` // contains filtered or unexported fields }
func (*SetRequest) Descriptor
deprecated
added in
v0.9.0
func (*SetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetRequest.ProtoReflect.Descriptor instead.
func (*SetRequest) GetFields ¶ added in v0.9.0
func (x *SetRequest) GetFields() []byte
func (*SetRequest) GetId ¶ added in v0.9.0
func (x *SetRequest) GetId() string
func (*SetRequest) ProtoMessage ¶ added in v0.9.0
func (*SetRequest) ProtoMessage()
func (*SetRequest) ProtoReflect ¶ added in v0.9.1
func (x *SetRequest) ProtoReflect() protoreflect.Message
func (*SetRequest) Reset ¶ added in v0.9.0
func (x *SetRequest) Reset()
func (*SetRequest) String ¶ added in v0.9.0
func (x *SetRequest) String() string
type UnimplementedIndexServer ¶ added in v0.9.0
type UnimplementedIndexServer struct { }
UnimplementedIndexServer can be embedded to have forward compatible implementations.
func (*UnimplementedIndexServer) BulkDelete ¶ added in v0.9.0
func (*UnimplementedIndexServer) BulkDelete(context.Context, *BulkDeleteRequest) (*BulkDeleteResponse, error)
func (*UnimplementedIndexServer) BulkIndex ¶ added in v0.9.0
func (*UnimplementedIndexServer) BulkIndex(context.Context, *BulkIndexRequest) (*BulkIndexResponse, error)
func (*UnimplementedIndexServer) Cluster ¶ added in v0.9.0
func (*UnimplementedIndexServer) Cluster(context.Context, *empty.Empty) (*ClusterResponse, error)
func (*UnimplementedIndexServer) Delete ¶ added in v0.9.0
func (*UnimplementedIndexServer) Delete(context.Context, *DeleteRequest) (*empty.Empty, error)
func (*UnimplementedIndexServer) Get ¶ added in v0.9.0
func (*UnimplementedIndexServer) Get(context.Context, *GetRequest) (*GetResponse, error)
func (*UnimplementedIndexServer) Join ¶ added in v0.9.0
func (*UnimplementedIndexServer) Join(context.Context, *JoinRequest) (*empty.Empty, error)
func (*UnimplementedIndexServer) Leave ¶ added in v0.9.0
func (*UnimplementedIndexServer) Leave(context.Context, *LeaveRequest) (*empty.Empty, error)
func (*UnimplementedIndexServer) LivenessCheck ¶ added in v0.9.0
func (*UnimplementedIndexServer) LivenessCheck(context.Context, *empty.Empty) (*LivenessCheckResponse, error)
func (*UnimplementedIndexServer) Mapping ¶ added in v0.9.0
func (*UnimplementedIndexServer) Mapping(context.Context, *empty.Empty) (*MappingResponse, error)
func (*UnimplementedIndexServer) Metrics ¶ added in v0.9.0
func (*UnimplementedIndexServer) Metrics(context.Context, *empty.Empty) (*MetricsResponse, error)
func (*UnimplementedIndexServer) Node ¶ added in v0.9.0
func (*UnimplementedIndexServer) Node(context.Context, *empty.Empty) (*NodeResponse, error)
func (*UnimplementedIndexServer) ReadinessCheck ¶ added in v0.9.0
func (*UnimplementedIndexServer) ReadinessCheck(context.Context, *empty.Empty) (*ReadinessCheckResponse, error)
func (*UnimplementedIndexServer) Search ¶ added in v0.9.0
func (*UnimplementedIndexServer) Search(context.Context, *SearchRequest) (*SearchResponse, error)
func (*UnimplementedIndexServer) Set ¶ added in v0.9.0
func (*UnimplementedIndexServer) Set(context.Context, *SetRequest) (*empty.Empty, error)
func (*UnimplementedIndexServer) Watch ¶ added in v0.9.0
func (*UnimplementedIndexServer) Watch(*empty.Empty, Index_WatchServer) error
type WatchResponse ¶ added in v0.9.0
type WatchResponse struct { Event *Event `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*WatchResponse) Descriptor
deprecated
added in
v0.9.0
func (*WatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use WatchResponse.ProtoReflect.Descriptor instead.
func (*WatchResponse) GetEvent ¶ added in v0.9.0
func (x *WatchResponse) GetEvent() *Event
func (*WatchResponse) ProtoMessage ¶ added in v0.9.0
func (*WatchResponse) ProtoMessage()
func (*WatchResponse) ProtoReflect ¶ added in v0.9.1
func (x *WatchResponse) ProtoReflect() protoreflect.Message
func (*WatchResponse) Reset ¶ added in v0.9.0
func (x *WatchResponse) Reset()
func (*WatchResponse) String ¶ added in v0.9.0
func (x *WatchResponse) String() string