bulk_request.go 410 B

1234567891011121314151617
  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. package elastic
  5. import (
  6. "fmt"
  7. )
  8. // -- Bulkable request (index/update/delete) --
  9. // BulkableRequest is a generic interface to bulkable requests.
  10. type BulkableRequest interface {
  11. fmt.Stringer
  12. Source() ([]string, error)
  13. }