Documentation
¶
Index ¶
- func NewContext() (context.Context, context.CancelFunc)
- type Client
- func (c *Client) Cancel()
- func (c *Client) Close() error
- func (c *Client) DeleteDocument(ids []string, opts ...grpc.CallOption) (int, error)
- func (c *Client) DeleteNode(id string, opts ...grpc.CallOption) error
- func (c *Client) DeleteValue(key string, opts ...grpc.CallOption) error
- func (c *Client) GetAddress() string
- func (c *Client) GetCluster(opts ...grpc.CallOption) (map[string]interface{}, error)
- func (c *Client) GetDocument(id string, opts ...grpc.CallOption) (map[string]interface{}, error)
- func (c *Client) GetIndexConfig(opts ...grpc.CallOption) (map[string]interface{}, error)
- func (c *Client) GetIndexStats(opts ...grpc.CallOption) (map[string]interface{}, error)
- func (c *Client) GetNode(id string, opts ...grpc.CallOption) (map[string]interface{}, error)
- func (c *Client) GetValue(key string, opts ...grpc.CallOption) (interface{}, error)
- func (c *Client) IndexDocument(docs []map[string]interface{}, opts ...grpc.CallOption) (int, error)
- func (c *Client) LivenessProbe(opts ...grpc.CallOption) (string, error)
- func (c *Client) ReadinessProbe(opts ...grpc.CallOption) (string, error)
- func (c *Client) Search(searchRequest *bleve.SearchRequest, opts ...grpc.CallOption) (*bleve.SearchResult, error)
- func (c *Client) SetNode(id string, nodeConfig map[string]interface{}, opts ...grpc.CallOption) error
- func (c *Client) SetValue(key string, value interface{}, opts ...grpc.CallOption) error
- func (c *Client) Snapshot(opts ...grpc.CallOption) error
- func (c *Client) WatchCluster(opts ...grpc.CallOption) (protobuf.Blast_WatchClusterClient, error)
- func (c *Client) WatchStore(key string, opts ...grpc.CallOption) (protobuf.Blast_WatchStoreClient, error)
- type Server
- type Service
- func (s *Service) DeleteDocument(stream protobuf.Blast_DeleteDocumentServer) error
- func (s *Service) DeleteNode(ctx context.Context, req *protobuf.DeleteNodeRequest) (*empty.Empty, error)
- func (s *Service) DeleteValue(ctx context.Context, req *protobuf.DeleteValueRequest) (*empty.Empty, error)
- func (s *Service) GetCluster(ctx context.Context, req *empty.Empty) (*protobuf.GetClusterResponse, error)
- func (s *Service) GetDocument(ctx context.Context, req *protobuf.GetDocumentRequest) (*protobuf.GetDocumentResponse, error)
- func (s *Service) GetIndexConfig(ctx context.Context, req *empty.Empty) (*protobuf.GetIndexConfigResponse, error)
- func (s *Service) GetIndexStats(ctx context.Context, req *empty.Empty) (*protobuf.GetIndexStatsResponse, error)
- func (s *Service) GetNode(ctx context.Context, req *protobuf.GetNodeRequest) (*protobuf.GetNodeResponse, error)
- func (s *Service) GetValue(ctx context.Context, req *protobuf.GetValueRequest) (*protobuf.GetValueResponse, error)
- func (s *Service) IndexDocument(stream protobuf.Blast_IndexDocumentServer) error
- func (s *Service) LivenessProbe(ctx context.Context, req *empty.Empty) (*protobuf.LivenessProbeResponse, error)
- func (s *Service) ReadinessProbe(ctx context.Context, req *empty.Empty) (*protobuf.ReadinessProbeResponse, error)
- func (s *Service) Search(ctx context.Context, req *protobuf.SearchRequest) (*protobuf.SearchResponse, error)
- func (s *Service) SetNode(ctx context.Context, req *protobuf.SetNodeRequest) (*empty.Empty, error)
- func (s *Service) SetValue(ctx context.Context, req *protobuf.SetValueRequest) (*empty.Empty, error)
- func (s *Service) Snapshot(ctx context.Context, req *empty.Empty) (*empty.Empty, error)
- func (s *Service) Start() error
- func (s *Service) Stop() error
- func (s *Service) WatchCluster(req *empty.Empty, server protobuf.Blast_WatchClusterServer) error
- func (s *Service) WatchStore(req *protobuf.WatchStoreRequest, server protobuf.Blast_WatchStoreServer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶
func NewContext() (context.Context, context.CancelFunc)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteDocument ¶
func (*Client) DeleteNode ¶
func (c *Client) DeleteNode(id string, opts ...grpc.CallOption) error
func (*Client) DeleteValue ¶ added in v0.7.1
func (c *Client) DeleteValue(key string, opts ...grpc.CallOption) error
func (*Client) GetAddress ¶
func (*Client) GetCluster ¶
func (c *Client) GetCluster(opts ...grpc.CallOption) (map[string]interface{}, error)
func (*Client) GetDocument ¶
func (*Client) GetIndexConfig ¶
func (c *Client) GetIndexConfig(opts ...grpc.CallOption) (map[string]interface{}, error)
func (*Client) GetIndexStats ¶
func (c *Client) GetIndexStats(opts ...grpc.CallOption) (map[string]interface{}, error)
func (*Client) GetValue ¶ added in v0.7.1
func (c *Client) GetValue(key string, opts ...grpc.CallOption) (interface{}, error)
func (*Client) IndexDocument ¶
func (*Client) LivenessProbe ¶
func (c *Client) LivenessProbe(opts ...grpc.CallOption) (string, error)
func (*Client) ReadinessProbe ¶
func (c *Client) ReadinessProbe(opts ...grpc.CallOption) (string, error)
func (*Client) Search ¶
func (c *Client) Search(searchRequest *bleve.SearchRequest, opts ...grpc.CallOption) (*bleve.SearchResult, error)
func (*Client) SetValue ¶ added in v0.7.1
func (c *Client) SetValue(key string, value interface{}, opts ...grpc.CallOption) error
func (*Client) WatchCluster ¶
func (c *Client) WatchCluster(opts ...grpc.CallOption) (protobuf.Blast_WatchClusterClient, error)
func (*Client) WatchStore ¶ added in v0.7.1
func (c *Client) WatchStore(key string, opts ...grpc.CallOption) (protobuf.Blast_WatchStoreClient, error)
type Service ¶
type Service struct{}
func (*Service) DeleteDocument ¶
func (s *Service) DeleteDocument(stream protobuf.Blast_DeleteDocumentServer) error
func (*Service) DeleteNode ¶
func (*Service) DeleteValue ¶ added in v0.7.1
func (*Service) GetCluster ¶
func (*Service) GetDocument ¶
func (s *Service) GetDocument(ctx context.Context, req *protobuf.GetDocumentRequest) (*protobuf.GetDocumentResponse, error)
func (*Service) GetIndexConfig ¶
func (*Service) GetIndexStats ¶
func (*Service) GetNode ¶
func (s *Service) GetNode(ctx context.Context, req *protobuf.GetNodeRequest) (*protobuf.GetNodeResponse, error)
func (*Service) GetValue ¶ added in v0.7.1
func (s *Service) GetValue(ctx context.Context, req *protobuf.GetValueRequest) (*protobuf.GetValueResponse, error)
func (*Service) IndexDocument ¶
func (s *Service) IndexDocument(stream protobuf.Blast_IndexDocumentServer) error
func (*Service) LivenessProbe ¶
func (*Service) ReadinessProbe ¶
func (*Service) Search ¶
func (s *Service) Search(ctx context.Context, req *protobuf.SearchRequest) (*protobuf.SearchResponse, error)
func (*Service) WatchCluster ¶
func (*Service) WatchStore ¶ added in v0.7.1
func (s *Service) WatchStore(req *protobuf.WatchStoreRequest, server protobuf.Blast_WatchStoreServer) error
Click to show internal directories.
Click to hide internal directories.