Documentation ¶
Overview ¶
Package go_micro_srv_elastic is a generated protocol buffer package.
It is generated from these files:
github.com/kazoup/elastic/srv/proto/elastic/elastic.proto
It has these top-level messages:
DocRef CreateRequest CreateResponse ReadRequest ReadResponse UpdateRequest UpdateResponse DeleteRequest DeleteResponse SearchRequest SearchResponse QueryRequest QueryResponse
Index ¶
- func RegisterElasticHandler(s server.Server, hdlr ElasticHandler)
- type CreateRequest
- type CreateResponse
- type DeleteRequest
- type DeleteResponse
- type DocRef
- type Elastic
- func (h *Elastic) Create(ctx context.Context, in *CreateRequest, out *CreateResponse) error
- func (h *Elastic) Delete(ctx context.Context, in *DeleteRequest, out *DeleteResponse) error
- func (h *Elastic) Query(ctx context.Context, in *QueryRequest, out *QueryResponse) error
- func (h *Elastic) Read(ctx context.Context, in *ReadRequest, out *ReadResponse) error
- func (h *Elastic) Search(ctx context.Context, in *SearchRequest, out *SearchResponse) error
- func (h *Elastic) Update(ctx context.Context, in *UpdateRequest, out *UpdateResponse) error
- type ElasticClient
- type ElasticHandler
- type QueryRequest
- type QueryResponse
- type ReadRequest
- type ReadResponse
- type SearchRequest
- type SearchResponse
- type UpdateRequest
- type UpdateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterElasticHandler ¶
func RegisterElasticHandler(s server.Server, hdlr ElasticHandler)
Types ¶
type CreateRequest ¶
type CreateRequest struct { Index string `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` Data string `protobuf:"bytes,4,opt,name=data" json:"data,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { }
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
type DeleteRequest ¶
type DeleteRequest struct { Index string `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` }
func (*DeleteRequest) Descriptor ¶
func (*DeleteRequest) Descriptor() ([]byte, []int)
func (*DeleteRequest) ProtoMessage ¶
func (*DeleteRequest) ProtoMessage()
func (*DeleteRequest) Reset ¶
func (m *DeleteRequest) Reset()
func (*DeleteRequest) String ¶
func (m *DeleteRequest) String() string
type DeleteResponse ¶
type DeleteResponse struct { }
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
type DocRef ¶
type DocRef struct { Index string `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` }
func (*DocRef) Descriptor ¶
func (*DocRef) ProtoMessage ¶
func (*DocRef) ProtoMessage()
type Elastic ¶
type Elastic struct {
ElasticHandler
}
func (*Elastic) Create ¶
func (h *Elastic) Create(ctx context.Context, in *CreateRequest, out *CreateResponse) error
func (*Elastic) Delete ¶
func (h *Elastic) Delete(ctx context.Context, in *DeleteRequest, out *DeleteResponse) error
func (*Elastic) Query ¶
func (h *Elastic) Query(ctx context.Context, in *QueryRequest, out *QueryResponse) error
func (*Elastic) Read ¶
func (h *Elastic) Read(ctx context.Context, in *ReadRequest, out *ReadResponse) error
func (*Elastic) Search ¶
func (h *Elastic) Search(ctx context.Context, in *SearchRequest, out *SearchResponse) error
func (*Elastic) Update ¶
func (h *Elastic) Update(ctx context.Context, in *UpdateRequest, out *UpdateResponse) error
type ElasticClient ¶
type ElasticClient 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) }
func NewElasticClient ¶
func NewElasticClient(serviceName string, c client.Client) ElasticClient
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 }
type QueryRequest ¶
type QueryRequest struct { Index string `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Query string `protobuf:"bytes,3,opt,name=query" json:"query,omitempty"` }
func (*QueryRequest) Descriptor ¶
func (*QueryRequest) Descriptor() ([]byte, []int)
func (*QueryRequest) ProtoMessage ¶
func (*QueryRequest) ProtoMessage()
func (*QueryRequest) Reset ¶
func (m *QueryRequest) Reset()
func (*QueryRequest) String ¶
func (m *QueryRequest) String() string
type QueryResponse ¶
type QueryResponse struct {
Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*QueryResponse) Descriptor ¶
func (*QueryResponse) Descriptor() ([]byte, []int)
func (*QueryResponse) ProtoMessage ¶
func (*QueryResponse) ProtoMessage()
func (*QueryResponse) Reset ¶
func (m *QueryResponse) Reset()
func (*QueryResponse) String ¶
func (m *QueryResponse) String() string
type ReadRequest ¶
type ReadRequest struct { Index string `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` }
func (*ReadRequest) Descriptor ¶
func (*ReadRequest) Descriptor() ([]byte, []int)
func (*ReadRequest) ProtoMessage ¶
func (*ReadRequest) ProtoMessage()
func (*ReadRequest) Reset ¶
func (m *ReadRequest) Reset()
func (*ReadRequest) String ¶
func (m *ReadRequest) String() string
type ReadResponse ¶
type ReadResponse struct {
Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*ReadResponse) Descriptor ¶
func (*ReadResponse) Descriptor() ([]byte, []int)
func (*ReadResponse) ProtoMessage ¶
func (*ReadResponse) ProtoMessage()
func (*ReadResponse) Reset ¶
func (m *ReadResponse) Reset()
func (*ReadResponse) String ¶
func (m *ReadResponse) String() string
type SearchRequest ¶
type SearchRequest struct { Index string `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Query string `protobuf:"bytes,3,opt,name=query" json:"query,omitempty"` Limit int64 `protobuf:"varint,4,opt,name=limit" json:"limit,omitempty"` Offset int64 `protobuf:"varint,5,opt,name=offset" json:"offset,omitempty"` }
func (*SearchRequest) Descriptor ¶
func (*SearchRequest) Descriptor() ([]byte, []int)
func (*SearchRequest) ProtoMessage ¶
func (*SearchRequest) ProtoMessage()
func (*SearchRequest) Reset ¶
func (m *SearchRequest) Reset()
func (*SearchRequest) String ¶
func (m *SearchRequest) String() string
type SearchResponse ¶
type SearchResponse struct {
Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (*SearchResponse) Descriptor ¶
func (*SearchResponse) Descriptor() ([]byte, []int)
func (*SearchResponse) ProtoMessage ¶
func (*SearchResponse) ProtoMessage()
func (*SearchResponse) Reset ¶
func (m *SearchResponse) Reset()
func (*SearchResponse) String ¶
func (m *SearchResponse) String() string
type UpdateRequest ¶
type UpdateRequest struct { Index string `protobuf:"bytes,1,opt,name=index" json:"index,omitempty"` Type string `protobuf:"bytes,2,opt,name=type" json:"type,omitempty"` Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"` Data string `protobuf:"bytes,4,opt,name=data" json:"data,omitempty"` }
func (*UpdateRequest) Descriptor ¶
func (*UpdateRequest) Descriptor() ([]byte, []int)
func (*UpdateRequest) ProtoMessage ¶
func (*UpdateRequest) ProtoMessage()
func (*UpdateRequest) Reset ¶
func (m *UpdateRequest) Reset()
func (*UpdateRequest) String ¶
func (m *UpdateRequest) String() string
type UpdateResponse ¶
type UpdateResponse struct { }
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
Click to show internal directories.
Click to hide internal directories.