Documentation ¶
Overview ¶
Package go_micro_srv_elastic is a generated protocol buffer package.
It is generated from these files:
proto/elastic/elastic.proto
It has these top-level messages:
DocRef CreateRequest CreateResponse ReadRequest ReadResponse UpdateRequest UpdateResponse DeleteRequest DeleteResponse SearchRequest SearchResponse QueryRequest QueryResponse CountRequest CountResponse CreateIndexWithSettingsRequest CreateIndexWithSettingsResponse PutMappingFromJSONRequest PutMappingFromJSONResponse
Index ¶
- func RegisterElasticHandler(s server.Server, hdlr ElasticHandler, opts ...server.HandlerOption) error
- type CountRequest
- func (*CountRequest) Descriptor() ([]byte, []int)
- func (m *CountRequest) GetIndex() string
- func (m *CountRequest) GetQuery() string
- func (m *CountRequest) GetType() string
- func (*CountRequest) ProtoMessage()
- func (m *CountRequest) Reset()
- func (m *CountRequest) String() string
- func (m *CountRequest) XXX_DiscardUnknown()
- func (m *CountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CountRequest) XXX_Merge(src proto.Message)
- func (m *CountRequest) XXX_Size() int
- func (m *CountRequest) XXX_Unmarshal(b []byte) error
- type CountResponse
- func (*CountResponse) Descriptor() ([]byte, []int)
- func (m *CountResponse) GetResult() string
- func (*CountResponse) ProtoMessage()
- func (m *CountResponse) Reset()
- func (m *CountResponse) String() string
- func (m *CountResponse) XXX_DiscardUnknown()
- func (m *CountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CountResponse) XXX_Merge(src proto.Message)
- func (m *CountResponse) XXX_Size() int
- func (m *CountResponse) XXX_Unmarshal(b []byte) error
- type CreateIndexWithSettingsRequest
- func (*CreateIndexWithSettingsRequest) Descriptor() ([]byte, []int)
- func (m *CreateIndexWithSettingsRequest) GetIndex() string
- func (m *CreateIndexWithSettingsRequest) GetSettings() string
- func (*CreateIndexWithSettingsRequest) ProtoMessage()
- func (m *CreateIndexWithSettingsRequest) Reset()
- func (m *CreateIndexWithSettingsRequest) String() string
- func (m *CreateIndexWithSettingsRequest) XXX_DiscardUnknown()
- func (m *CreateIndexWithSettingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateIndexWithSettingsRequest) XXX_Merge(src proto.Message)
- func (m *CreateIndexWithSettingsRequest) XXX_Size() int
- func (m *CreateIndexWithSettingsRequest) XXX_Unmarshal(b []byte) error
- type CreateIndexWithSettingsResponse
- func (*CreateIndexWithSettingsResponse) Descriptor() ([]byte, []int)
- func (*CreateIndexWithSettingsResponse) ProtoMessage()
- func (m *CreateIndexWithSettingsResponse) Reset()
- func (m *CreateIndexWithSettingsResponse) String() string
- func (m *CreateIndexWithSettingsResponse) XXX_DiscardUnknown()
- func (m *CreateIndexWithSettingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateIndexWithSettingsResponse) XXX_Merge(src proto.Message)
- func (m *CreateIndexWithSettingsResponse) XXX_Size() int
- func (m *CreateIndexWithSettingsResponse) XXX_Unmarshal(b []byte) error
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetData() string
- func (m *CreateRequest) GetId() string
- func (m *CreateRequest) GetIndex() string
- func (m *CreateRequest) GetType() string
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) String() string
- func (m *CreateRequest) XXX_DiscardUnknown()
- func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest) XXX_Merge(src proto.Message)
- func (m *CreateRequest) XXX_Size() int
- func (m *CreateRequest) XXX_Unmarshal(b []byte) error
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)
- func (*CreateResponse) ProtoMessage()
- func (m *CreateResponse) Reset()
- func (m *CreateResponse) String() string
- func (m *CreateResponse) XXX_DiscardUnknown()
- func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResponse) XXX_Merge(src proto.Message)
- func (m *CreateResponse) XXX_Size() int
- func (m *CreateResponse) XXX_Unmarshal(b []byte) error
- type DeleteRequest
- func (*DeleteRequest) Descriptor() ([]byte, []int)
- func (m *DeleteRequest) GetId() string
- func (m *DeleteRequest) GetIndex() string
- func (m *DeleteRequest) GetType() string
- func (*DeleteRequest) ProtoMessage()
- func (m *DeleteRequest) Reset()
- func (m *DeleteRequest) String() string
- func (m *DeleteRequest) XXX_DiscardUnknown()
- func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteRequest) XXX_Merge(src proto.Message)
- func (m *DeleteRequest) XXX_Size() int
- func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
- type DeleteResponse
- func (*DeleteResponse) Descriptor() ([]byte, []int)
- func (*DeleteResponse) ProtoMessage()
- func (m *DeleteResponse) Reset()
- func (m *DeleteResponse) String() string
- func (m *DeleteResponse) XXX_DiscardUnknown()
- func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteResponse) XXX_Merge(src proto.Message)
- func (m *DeleteResponse) XXX_Size() int
- func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
- type DocRef
- func (*DocRef) Descriptor() ([]byte, []int)
- func (m *DocRef) GetId() string
- func (m *DocRef) GetIndex() string
- func (m *DocRef) GetType() string
- func (*DocRef) ProtoMessage()
- func (m *DocRef) Reset()
- func (m *DocRef) String() string
- func (m *DocRef) XXX_DiscardUnknown()
- func (m *DocRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DocRef) XXX_Merge(src proto.Message)
- func (m *DocRef) XXX_Size() int
- func (m *DocRef) XXX_Unmarshal(b []byte) error
- type ElasticHandler
- type ElasticService
- type PutMappingFromJSONRequest
- func (*PutMappingFromJSONRequest) Descriptor() ([]byte, []int)
- func (m *PutMappingFromJSONRequest) GetIndex() string
- func (m *PutMappingFromJSONRequest) GetMapping() string
- func (m *PutMappingFromJSONRequest) GetType() string
- func (*PutMappingFromJSONRequest) ProtoMessage()
- func (m *PutMappingFromJSONRequest) Reset()
- func (m *PutMappingFromJSONRequest) String() string
- func (m *PutMappingFromJSONRequest) XXX_DiscardUnknown()
- func (m *PutMappingFromJSONRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PutMappingFromJSONRequest) XXX_Merge(src proto.Message)
- func (m *PutMappingFromJSONRequest) XXX_Size() int
- func (m *PutMappingFromJSONRequest) XXX_Unmarshal(b []byte) error
- type PutMappingFromJSONResponse
- func (*PutMappingFromJSONResponse) Descriptor() ([]byte, []int)
- func (*PutMappingFromJSONResponse) ProtoMessage()
- func (m *PutMappingFromJSONResponse) Reset()
- func (m *PutMappingFromJSONResponse) String() string
- func (m *PutMappingFromJSONResponse) XXX_DiscardUnknown()
- func (m *PutMappingFromJSONResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PutMappingFromJSONResponse) XXX_Merge(src proto.Message)
- func (m *PutMappingFromJSONResponse) XXX_Size() int
- func (m *PutMappingFromJSONResponse) XXX_Unmarshal(b []byte) error
- type QueryRequest
- func (*QueryRequest) Descriptor() ([]byte, []int)
- func (m *QueryRequest) GetIndex() string
- func (m *QueryRequest) GetQuery() string
- func (m *QueryRequest) GetType() string
- func (*QueryRequest) ProtoMessage()
- func (m *QueryRequest) Reset()
- func (m *QueryRequest) String() string
- func (m *QueryRequest) XXX_DiscardUnknown()
- func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryRequest) XXX_Merge(src proto.Message)
- func (m *QueryRequest) XXX_Size() int
- func (m *QueryRequest) XXX_Unmarshal(b []byte) error
- type QueryResponse
- func (*QueryResponse) Descriptor() ([]byte, []int)
- func (m *QueryResponse) GetResult() string
- func (*QueryResponse) ProtoMessage()
- func (m *QueryResponse) Reset()
- func (m *QueryResponse) String() string
- func (m *QueryResponse) XXX_DiscardUnknown()
- func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResponse) XXX_Merge(src proto.Message)
- func (m *QueryResponse) XXX_Size() int
- func (m *QueryResponse) XXX_Unmarshal(b []byte) error
- type ReadRequest
- func (*ReadRequest) Descriptor() ([]byte, []int)
- func (m *ReadRequest) GetId() string
- func (m *ReadRequest) GetIndex() string
- func (m *ReadRequest) GetType() string
- func (*ReadRequest) ProtoMessage()
- func (m *ReadRequest) Reset()
- func (m *ReadRequest) String() string
- func (m *ReadRequest) XXX_DiscardUnknown()
- func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadRequest) XXX_Merge(src proto.Message)
- func (m *ReadRequest) XXX_Size() int
- func (m *ReadRequest) XXX_Unmarshal(b []byte) error
- type ReadResponse
- func (*ReadResponse) Descriptor() ([]byte, []int)
- func (m *ReadResponse) GetResult() string
- func (*ReadResponse) ProtoMessage()
- func (m *ReadResponse) Reset()
- func (m *ReadResponse) String() string
- func (m *ReadResponse) XXX_DiscardUnknown()
- func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReadResponse) XXX_Merge(src proto.Message)
- func (m *ReadResponse) XXX_Size() int
- func (m *ReadResponse) XXX_Unmarshal(b []byte) error
- type SearchRequest
- func (*SearchRequest) Descriptor() ([]byte, []int)
- func (m *SearchRequest) GetIndex() string
- func (m *SearchRequest) GetLimit() int64
- func (m *SearchRequest) GetOffset() int64
- func (m *SearchRequest) GetQuery() string
- func (m *SearchRequest) GetType() string
- func (*SearchRequest) ProtoMessage()
- func (m *SearchRequest) Reset()
- func (m *SearchRequest) String() string
- func (m *SearchRequest) XXX_DiscardUnknown()
- func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchRequest) XXX_Merge(src proto.Message)
- func (m *SearchRequest) XXX_Size() int
- func (m *SearchRequest) XXX_Unmarshal(b []byte) error
- type SearchResponse
- func (*SearchResponse) Descriptor() ([]byte, []int)
- func (m *SearchResponse) GetResult() string
- func (*SearchResponse) ProtoMessage()
- func (m *SearchResponse) Reset()
- func (m *SearchResponse) String() string
- func (m *SearchResponse) XXX_DiscardUnknown()
- func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchResponse) XXX_Merge(src proto.Message)
- func (m *SearchResponse) XXX_Size() int
- func (m *SearchResponse) XXX_Unmarshal(b []byte) error
- type UpdateRequest
- func (*UpdateRequest) Descriptor() ([]byte, []int)
- func (m *UpdateRequest) GetData() string
- func (m *UpdateRequest) GetId() string
- func (m *UpdateRequest) GetIndex() string
- func (m *UpdateRequest) GetType() string
- func (*UpdateRequest) ProtoMessage()
- func (m *UpdateRequest) Reset()
- func (m *UpdateRequest) String() string
- func (m *UpdateRequest) XXX_DiscardUnknown()
- func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateRequest) XXX_Merge(src proto.Message)
- func (m *UpdateRequest) XXX_Size() int
- func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
- type UpdateResponse
- func (*UpdateResponse) Descriptor() ([]byte, []int)
- func (*UpdateResponse) ProtoMessage()
- func (m *UpdateResponse) Reset()
- func (m *UpdateResponse) String() string
- func (m *UpdateResponse) XXX_DiscardUnknown()
- func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateResponse) XXX_Merge(src proto.Message)
- func (m *UpdateResponse) XXX_Size() int
- func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterElasticHandler ¶
func RegisterElasticHandler(s server.Server, hdlr ElasticHandler, opts ...server.HandlerOption) error
Types ¶
type CountRequest ¶
type CountRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CountRequest) Descriptor ¶
func (*CountRequest) Descriptor() ([]byte, []int)
func (*CountRequest) GetIndex ¶
func (m *CountRequest) GetIndex() string
func (*CountRequest) GetQuery ¶
func (m *CountRequest) GetQuery() string
func (*CountRequest) GetType ¶
func (m *CountRequest) GetType() string
func (*CountRequest) ProtoMessage ¶
func (*CountRequest) ProtoMessage()
func (*CountRequest) Reset ¶
func (m *CountRequest) Reset()
func (*CountRequest) String ¶
func (m *CountRequest) String() string
func (*CountRequest) XXX_DiscardUnknown ¶
func (m *CountRequest) XXX_DiscardUnknown()
func (*CountRequest) XXX_Marshal ¶
func (m *CountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CountRequest) XXX_Merge ¶
func (m *CountRequest) XXX_Merge(src proto.Message)
func (*CountRequest) XXX_Size ¶
func (m *CountRequest) XXX_Size() int
func (*CountRequest) XXX_Unmarshal ¶
func (m *CountRequest) XXX_Unmarshal(b []byte) error
type CountResponse ¶
type CountResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CountResponse) Descriptor ¶
func (*CountResponse) Descriptor() ([]byte, []int)
func (*CountResponse) GetResult ¶
func (m *CountResponse) GetResult() string
func (*CountResponse) ProtoMessage ¶
func (*CountResponse) ProtoMessage()
func (*CountResponse) Reset ¶
func (m *CountResponse) Reset()
func (*CountResponse) String ¶
func (m *CountResponse) String() string
func (*CountResponse) XXX_DiscardUnknown ¶
func (m *CountResponse) XXX_DiscardUnknown()
func (*CountResponse) XXX_Marshal ¶
func (m *CountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CountResponse) XXX_Merge ¶
func (m *CountResponse) XXX_Merge(src proto.Message)
func (*CountResponse) XXX_Size ¶
func (m *CountResponse) XXX_Size() int
func (*CountResponse) XXX_Unmarshal ¶
func (m *CountResponse) XXX_Unmarshal(b []byte) error
type CreateIndexWithSettingsRequest ¶
type CreateIndexWithSettingsRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Settings string `protobuf:"bytes,2,opt,name=settings,proto3" json:"settings,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateIndexWithSettingsRequest) Descriptor ¶
func (*CreateIndexWithSettingsRequest) Descriptor() ([]byte, []int)
func (*CreateIndexWithSettingsRequest) GetIndex ¶
func (m *CreateIndexWithSettingsRequest) GetIndex() string
func (*CreateIndexWithSettingsRequest) GetSettings ¶
func (m *CreateIndexWithSettingsRequest) GetSettings() string
func (*CreateIndexWithSettingsRequest) ProtoMessage ¶
func (*CreateIndexWithSettingsRequest) ProtoMessage()
func (*CreateIndexWithSettingsRequest) Reset ¶
func (m *CreateIndexWithSettingsRequest) Reset()
func (*CreateIndexWithSettingsRequest) String ¶
func (m *CreateIndexWithSettingsRequest) String() string
func (*CreateIndexWithSettingsRequest) XXX_DiscardUnknown ¶
func (m *CreateIndexWithSettingsRequest) XXX_DiscardUnknown()
func (*CreateIndexWithSettingsRequest) XXX_Marshal ¶
func (m *CreateIndexWithSettingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateIndexWithSettingsRequest) XXX_Merge ¶
func (m *CreateIndexWithSettingsRequest) XXX_Merge(src proto.Message)
func (*CreateIndexWithSettingsRequest) XXX_Size ¶
func (m *CreateIndexWithSettingsRequest) XXX_Size() int
func (*CreateIndexWithSettingsRequest) XXX_Unmarshal ¶
func (m *CreateIndexWithSettingsRequest) XXX_Unmarshal(b []byte) error
type CreateIndexWithSettingsResponse ¶
type CreateIndexWithSettingsResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateIndexWithSettingsResponse) Descriptor ¶
func (*CreateIndexWithSettingsResponse) Descriptor() ([]byte, []int)
func (*CreateIndexWithSettingsResponse) ProtoMessage ¶
func (*CreateIndexWithSettingsResponse) ProtoMessage()
func (*CreateIndexWithSettingsResponse) Reset ¶
func (m *CreateIndexWithSettingsResponse) Reset()
func (*CreateIndexWithSettingsResponse) String ¶
func (m *CreateIndexWithSettingsResponse) String() string
func (*CreateIndexWithSettingsResponse) XXX_DiscardUnknown ¶
func (m *CreateIndexWithSettingsResponse) XXX_DiscardUnknown()
func (*CreateIndexWithSettingsResponse) XXX_Marshal ¶
func (m *CreateIndexWithSettingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateIndexWithSettingsResponse) XXX_Merge ¶
func (m *CreateIndexWithSettingsResponse) XXX_Merge(src proto.Message)
func (*CreateIndexWithSettingsResponse) XXX_Size ¶
func (m *CreateIndexWithSettingsResponse) XXX_Size() int
func (*CreateIndexWithSettingsResponse) XXX_Unmarshal ¶
func (m *CreateIndexWithSettingsResponse) XXX_Unmarshal(b []byte) error
type CreateRequest ¶
type CreateRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetData ¶
func (m *CreateRequest) GetData() string
func (*CreateRequest) GetId ¶
func (m *CreateRequest) GetId() string
func (*CreateRequest) GetIndex ¶
func (m *CreateRequest) GetIndex() string
func (*CreateRequest) GetType ¶
func (m *CreateRequest) GetType() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
func (*CreateRequest) XXX_DiscardUnknown ¶
func (m *CreateRequest) XXX_DiscardUnknown()
func (*CreateRequest) XXX_Marshal ¶
func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest) XXX_Merge ¶
func (m *CreateRequest) XXX_Merge(src proto.Message)
func (*CreateRequest) XXX_Size ¶
func (m *CreateRequest) XXX_Size() int
func (*CreateRequest) XXX_Unmarshal ¶
func (m *CreateRequest) XXX_Unmarshal(b []byte) error
type CreateResponse ¶
type CreateResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (m *CreateResponse) String() string
func (*CreateResponse) XXX_DiscardUnknown ¶
func (m *CreateResponse) XXX_DiscardUnknown()
func (*CreateResponse) XXX_Marshal ¶
func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateResponse) XXX_Merge ¶
func (m *CreateResponse) XXX_Merge(src proto.Message)
func (*CreateResponse) XXX_Size ¶
func (m *CreateResponse) XXX_Size() int
func (*CreateResponse) XXX_Unmarshal ¶
func (m *CreateResponse) XXX_Unmarshal(b []byte) error
type DeleteRequest ¶
type DeleteRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) GetId ¶
func (m *DeleteRequest) GetId() string
func (*DeleteRequest) GetIndex ¶
func (m *DeleteRequest) GetIndex() string
func (*DeleteRequest) GetType ¶
func (m *DeleteRequest) GetType() string
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
func (*DeleteRequest) XXX_DiscardUnknown ¶
func (m *DeleteRequest) XXX_DiscardUnknown()
func (*DeleteRequest) XXX_Marshal ¶
func (m *DeleteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteRequest) XXX_Merge ¶
func (m *DeleteRequest) XXX_Merge(src proto.Message)
func (*DeleteRequest) XXX_Size ¶
func (m *DeleteRequest) XXX_Size() int
func (*DeleteRequest) XXX_Unmarshal ¶
func (m *DeleteRequest) XXX_Unmarshal(b []byte) error
type DeleteResponse ¶
type DeleteResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteResponse) Descriptor ¶
func (*DeleteResponse) Descriptor() ([]byte, []int)
func (*DeleteResponse) ProtoMessage ¶
func (*DeleteResponse) ProtoMessage()
func (*DeleteResponse) Reset ¶
func (m *DeleteResponse) Reset()
func (*DeleteResponse) String ¶
func (m *DeleteResponse) String() string
func (*DeleteResponse) XXX_DiscardUnknown ¶
func (m *DeleteResponse) XXX_DiscardUnknown()
func (*DeleteResponse) XXX_Marshal ¶
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteResponse) XXX_Merge ¶
func (m *DeleteResponse) XXX_Merge(src proto.Message)
func (*DeleteResponse) XXX_Size ¶
func (m *DeleteResponse) XXX_Size() int
func (*DeleteResponse) XXX_Unmarshal ¶
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error
type DocRef ¶
type DocRef struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DocRef) Descriptor ¶
func (*DocRef) ProtoMessage ¶
func (*DocRef) ProtoMessage()
func (*DocRef) XXX_DiscardUnknown ¶
func (m *DocRef) XXX_DiscardUnknown()
func (*DocRef) XXX_Marshal ¶
func (*DocRef) XXX_Unmarshal ¶
type ElasticHandler ¶
type ElasticHandler interface { Create(context.Context, *CreateRequest, *CreateResponse) error Read(context.Context, *ReadRequest, *ReadResponse) error Update(context.Context, *UpdateRequest, *UpdateResponse) error Delete(context.Context, *DeleteRequest, *DeleteResponse) error Search(context.Context, *SearchRequest, *SearchResponse) error Query(context.Context, *QueryRequest, *QueryResponse) error CreateIndexWithSettings(context.Context, *CreateIndexWithSettingsRequest, *CreateIndexWithSettingsResponse) error PutMappingFromJSON(context.Context, *PutMappingFromJSONRequest, *PutMappingFromJSONRequest) error }
type ElasticService ¶
type ElasticService interface { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) Read(ctx context.Context, in *ReadRequest, opts ...client.CallOption) (*ReadResponse, error) Update(ctx context.Context, in *UpdateRequest, opts ...client.CallOption) (*UpdateResponse, error) Delete(ctx context.Context, in *DeleteRequest, opts ...client.CallOption) (*DeleteResponse, error) Search(ctx context.Context, in *SearchRequest, opts ...client.CallOption) (*SearchResponse, error) Query(ctx context.Context, in *QueryRequest, opts ...client.CallOption) (*QueryResponse, error) CreateIndexWithSettings(ctx context.Context, in *CreateIndexWithSettingsRequest, opts ...client.CallOption) (*CreateIndexWithSettingsResponse, error) PutMappingFromJSON(ctx context.Context, in *PutMappingFromJSONRequest, opts ...client.CallOption) (*PutMappingFromJSONRequest, error) }
func NewElasticService ¶
func NewElasticService(name string, c client.Client) ElasticService
type PutMappingFromJSONRequest ¶
type PutMappingFromJSONRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Mapping string `protobuf:"bytes,3,opt,name=mapping,proto3" json:"mapping,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutMappingFromJSONRequest) Descriptor ¶
func (*PutMappingFromJSONRequest) Descriptor() ([]byte, []int)
func (*PutMappingFromJSONRequest) GetIndex ¶
func (m *PutMappingFromJSONRequest) GetIndex() string
func (*PutMappingFromJSONRequest) GetMapping ¶
func (m *PutMappingFromJSONRequest) GetMapping() string
func (*PutMappingFromJSONRequest) GetType ¶
func (m *PutMappingFromJSONRequest) GetType() string
func (*PutMappingFromJSONRequest) ProtoMessage ¶
func (*PutMappingFromJSONRequest) ProtoMessage()
func (*PutMappingFromJSONRequest) Reset ¶
func (m *PutMappingFromJSONRequest) Reset()
func (*PutMappingFromJSONRequest) String ¶
func (m *PutMappingFromJSONRequest) String() string
func (*PutMappingFromJSONRequest) XXX_DiscardUnknown ¶
func (m *PutMappingFromJSONRequest) XXX_DiscardUnknown()
func (*PutMappingFromJSONRequest) XXX_Marshal ¶
func (m *PutMappingFromJSONRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PutMappingFromJSONRequest) XXX_Merge ¶
func (m *PutMappingFromJSONRequest) XXX_Merge(src proto.Message)
func (*PutMappingFromJSONRequest) XXX_Size ¶
func (m *PutMappingFromJSONRequest) XXX_Size() int
func (*PutMappingFromJSONRequest) XXX_Unmarshal ¶
func (m *PutMappingFromJSONRequest) XXX_Unmarshal(b []byte) error
type PutMappingFromJSONResponse ¶
type PutMappingFromJSONResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PutMappingFromJSONResponse) Descriptor ¶
func (*PutMappingFromJSONResponse) Descriptor() ([]byte, []int)
func (*PutMappingFromJSONResponse) ProtoMessage ¶
func (*PutMappingFromJSONResponse) ProtoMessage()
func (*PutMappingFromJSONResponse) Reset ¶
func (m *PutMappingFromJSONResponse) Reset()
func (*PutMappingFromJSONResponse) String ¶
func (m *PutMappingFromJSONResponse) String() string
func (*PutMappingFromJSONResponse) XXX_DiscardUnknown ¶
func (m *PutMappingFromJSONResponse) XXX_DiscardUnknown()
func (*PutMappingFromJSONResponse) XXX_Marshal ¶
func (m *PutMappingFromJSONResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PutMappingFromJSONResponse) XXX_Merge ¶
func (m *PutMappingFromJSONResponse) XXX_Merge(src proto.Message)
func (*PutMappingFromJSONResponse) XXX_Size ¶
func (m *PutMappingFromJSONResponse) XXX_Size() int
func (*PutMappingFromJSONResponse) XXX_Unmarshal ¶
func (m *PutMappingFromJSONResponse) XXX_Unmarshal(b []byte) error
type QueryRequest ¶
type QueryRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryRequest) Descriptor ¶
func (*QueryRequest) Descriptor() ([]byte, []int)
func (*QueryRequest) GetIndex ¶
func (m *QueryRequest) GetIndex() string
func (*QueryRequest) GetQuery ¶
func (m *QueryRequest) GetQuery() string
func (*QueryRequest) GetType ¶
func (m *QueryRequest) GetType() string
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) Reset ¶
func (m *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (m *QueryRequest) String() string
func (*QueryRequest) XXX_DiscardUnknown ¶
func (m *QueryRequest) XXX_DiscardUnknown()
func (*QueryRequest) XXX_Marshal ¶
func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryRequest) XXX_Merge ¶
func (m *QueryRequest) XXX_Merge(src proto.Message)
func (*QueryRequest) XXX_Size ¶
func (m *QueryRequest) XXX_Size() int
func (*QueryRequest) XXX_Unmarshal ¶
func (m *QueryRequest) XXX_Unmarshal(b []byte) error
type QueryResponse ¶
type QueryResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*QueryResponse) Descriptor ¶
func (*QueryResponse) Descriptor() ([]byte, []int)
func (*QueryResponse) GetResult ¶
func (m *QueryResponse) GetResult() string
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) Reset ¶
func (m *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (m *QueryResponse) String() string
func (*QueryResponse) XXX_DiscardUnknown ¶
func (m *QueryResponse) XXX_DiscardUnknown()
func (*QueryResponse) XXX_Marshal ¶
func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResponse) XXX_Merge ¶
func (m *QueryResponse) XXX_Merge(src proto.Message)
func (*QueryResponse) XXX_Size ¶
func (m *QueryResponse) XXX_Size() int
func (*QueryResponse) XXX_Unmarshal ¶
func (m *QueryResponse) XXX_Unmarshal(b []byte) error
type ReadRequest ¶
type ReadRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReadRequest) Descriptor ¶
func (*ReadRequest) Descriptor() ([]byte, []int)
func (*ReadRequest) GetId ¶
func (m *ReadRequest) GetId() string
func (*ReadRequest) GetIndex ¶
func (m *ReadRequest) GetIndex() string
func (*ReadRequest) GetType ¶
func (m *ReadRequest) GetType() string
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) Reset ¶
func (m *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (m *ReadRequest) String() string
func (*ReadRequest) XXX_DiscardUnknown ¶
func (m *ReadRequest) XXX_DiscardUnknown()
func (*ReadRequest) XXX_Marshal ¶
func (m *ReadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadRequest) XXX_Merge ¶
func (m *ReadRequest) XXX_Merge(src proto.Message)
func (*ReadRequest) XXX_Size ¶
func (m *ReadRequest) XXX_Size() int
func (*ReadRequest) XXX_Unmarshal ¶
func (m *ReadRequest) XXX_Unmarshal(b []byte) error
type ReadResponse ¶
type ReadResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ReadResponse) Descriptor ¶
func (*ReadResponse) Descriptor() ([]byte, []int)
func (*ReadResponse) GetResult ¶
func (m *ReadResponse) GetResult() string
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) Reset ¶
func (m *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (m *ReadResponse) String() string
func (*ReadResponse) XXX_DiscardUnknown ¶
func (m *ReadResponse) XXX_DiscardUnknown()
func (*ReadResponse) XXX_Marshal ¶
func (m *ReadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ReadResponse) XXX_Merge ¶
func (m *ReadResponse) XXX_Merge(src proto.Message)
func (*ReadResponse) XXX_Size ¶
func (m *ReadResponse) XXX_Size() int
func (*ReadResponse) XXX_Unmarshal ¶
func (m *ReadResponse) XXX_Unmarshal(b []byte) error
type SearchRequest ¶
type SearchRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"` Limit int64 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchRequest) Descriptor ¶
func (*SearchRequest) Descriptor() ([]byte, []int)
func (*SearchRequest) GetIndex ¶
func (m *SearchRequest) GetIndex() string
func (*SearchRequest) GetLimit ¶
func (m *SearchRequest) GetLimit() int64
func (*SearchRequest) GetOffset ¶
func (m *SearchRequest) GetOffset() int64
func (*SearchRequest) GetQuery ¶
func (m *SearchRequest) GetQuery() string
func (*SearchRequest) GetType ¶
func (m *SearchRequest) GetType() string
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) Reset ¶
func (m *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (m *SearchRequest) String() string
func (*SearchRequest) XXX_DiscardUnknown ¶
func (m *SearchRequest) XXX_DiscardUnknown()
func (*SearchRequest) XXX_Marshal ¶
func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchRequest) XXX_Merge ¶
func (m *SearchRequest) XXX_Merge(src proto.Message)
func (*SearchRequest) XXX_Size ¶
func (m *SearchRequest) XXX_Size() int
func (*SearchRequest) XXX_Unmarshal ¶
func (m *SearchRequest) XXX_Unmarshal(b []byte) error
type SearchResponse ¶
type SearchResponse struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchResponse) Descriptor ¶
func (*SearchResponse) Descriptor() ([]byte, []int)
func (*SearchResponse) GetResult ¶
func (m *SearchResponse) GetResult() string
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) Reset ¶
func (m *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (m *SearchResponse) String() string
func (*SearchResponse) XXX_DiscardUnknown ¶
func (m *SearchResponse) XXX_DiscardUnknown()
func (*SearchResponse) XXX_Marshal ¶
func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchResponse) XXX_Merge ¶
func (m *SearchResponse) XXX_Merge(src proto.Message)
func (*SearchResponse) XXX_Size ¶
func (m *SearchResponse) XXX_Size() int
func (*SearchResponse) XXX_Unmarshal ¶
func (m *SearchResponse) XXX_Unmarshal(b []byte) error
type UpdateRequest ¶
type UpdateRequest struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Data string `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) GetData ¶
func (m *UpdateRequest) GetData() string
func (*UpdateRequest) GetId ¶
func (m *UpdateRequest) GetId() string
func (*UpdateRequest) GetIndex ¶
func (m *UpdateRequest) GetIndex() string
func (*UpdateRequest) GetType ¶
func (m *UpdateRequest) GetType() string
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
func (*UpdateRequest) XXX_DiscardUnknown ¶
func (m *UpdateRequest) XXX_DiscardUnknown()
func (*UpdateRequest) XXX_Marshal ¶
func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateRequest) XXX_Merge ¶
func (m *UpdateRequest) XXX_Merge(src proto.Message)
func (*UpdateRequest) XXX_Size ¶
func (m *UpdateRequest) XXX_Size() int
func (*UpdateRequest) XXX_Unmarshal ¶
func (m *UpdateRequest) XXX_Unmarshal(b []byte) error
type UpdateResponse ¶
type UpdateResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateResponse) Descriptor ¶
func (*UpdateResponse) Descriptor() ([]byte, []int)
func (*UpdateResponse) ProtoMessage ¶
func (*UpdateResponse) ProtoMessage()
func (*UpdateResponse) Reset ¶
func (m *UpdateResponse) Reset()
func (*UpdateResponse) String ¶
func (m *UpdateResponse) String() string
func (*UpdateResponse) XXX_DiscardUnknown ¶
func (m *UpdateResponse) XXX_DiscardUnknown()
func (*UpdateResponse) XXX_Marshal ¶
func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateResponse) XXX_Merge ¶
func (m *UpdateResponse) XXX_Merge(src proto.Message)
func (*UpdateResponse) XXX_Size ¶
func (m *UpdateResponse) XXX_Size() int
func (*UpdateResponse) XXX_Unmarshal ¶
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.