Debian Codegraph @

query.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 // Query represents the generic query interface. A query's sole purpose
8 // is to return the source of the query as a JSON-serializable object.
9 // Returning map[string]interface{} is the norm for queries.
10 type Query interface {
11 // Source returns the JSON-serializable query request.
12 Source() (interface{}, error)
13 }