database

package
v0.0.0-...-4aca82f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package database provides libraries to write plugin results to a database.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Init() error
	TestConnection() error
	StoreFileInfo(sample map[string]interface{}) error
	StoreHash(hash string) error
	StorePluginResults(results PluginResults) error
}

Database is a Malice Database interface

type PluginResults

type PluginResults struct {
	ID       string                 `json:"id"`
	Name     string                 `json:"name,omitempty"`
	Category string                 `json:"category,omitempty"`
	Data     map[string]interface{} `json:"data,omitempty"`
}

PluginResults a malice plugin results object

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL