Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/vendor/gopkg.in/olivere/elastic.v5/suggester.go

16 lignes
490 o
Go
Brut Vue normale Historique

// Copyright 2012-present Oliver Eilhard. All rights reserved.
// Use of this source code is governed by a MIT-license.
// See http://olivere.mit-license.org/license.txt for details.
package elastic
// Represents the generic suggester interface.
// A suggester's only purpose is to return the
// source of the query as a JSON-serializable
// object. Returning a map[string]interface{}
// will do.
type Suggester interface {
Name() string
Source(includeName bool) (interface{}, error)
}