Versions in this module Expand all Collapse all v1 v1.1.7 Mar 21, 2020 v1.1.6 Sep 14, 2019 Changes in this version + type Database struct + Host string + Index string + Password string + Plugins map[string]interface{} + Port string + Type string + URL string + Username string + func (db *Database) Init() error + func (db *Database) StoreFileInfo(sample map[string]interface{}) (elastic.IndexResponse, error) + func (db *Database) StoreHash(hash string) (elastic.IndexResponse, error) + func (db *Database) StorePluginResults(results database.PluginResults) error + func (db *Database) TestConnection() error + func (db *Database) WaitForConnection(ctx context.Context, timeout int) error