add a es client for auditing, events, and logging
Signed-off-by: wanjunlei <wanjunlei@yunify.com>
This commit is contained in:
9
pkg/simple/client/es/versions/interface.go
Normal file
9
pkg/simple/client/es/versions/interface.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package versions
|
||||
|
||||
// versioned es client interface
|
||||
type Client interface {
|
||||
Search(indices string, body []byte, scroll bool) ([]byte, error)
|
||||
Scroll(id string) ([]byte, error)
|
||||
ClearScroll(id string)
|
||||
GetTotalHitCount(v interface{}) int64
|
||||
}
|
||||
Reference in New Issue
Block a user