bulk_request.go
raw| 1 | // Copyright 2012-present Oliver Eilhard. All rights reserved. |
| 2 | // Use of this source code is governed by a MIT-license. |
| 3 | // See http://olivere.mit-license.org/license.txt for details. |
| 4 | |
| 5 | package elastic |
| 6 | |
| 7 | import ( |
| 8 | "fmt" |
| 9 | ) |
| 10 | |
| 11 | // -- Bulkable request (index/update/delete) -- |
| 12 | |
| 13 | // BulkableRequest is a generic interface to bulkable requests. |
| 14 | type BulkableRequest interface { |
| 15 | fmt.Stringer |
| 16 | Source() ([]string, error) |
| 17 | } |