Documentation ¶
Index ¶
- type DB
- type RDBDriver
- func (r *RDBDriver) GetExploitAll() []*models.Exploit
- func (r *RDBDriver) GetExploitByCveID(cveID string) []*models.Exploit
- func (r *RDBDriver) GetExploitByID(exploitUniqueID string) []*models.Exploit
- func (r *RDBDriver) GetExploitMultiByCveID(cveIDs []string) (exploits map[string][]*models.Exploit)
- func (r *RDBDriver) GetExploitMultiByID(exploitUniqueIDs []string) map[string][]*models.Exploit
- func (r *RDBDriver) InsertExploit(exploits []*models.Exploit) (err error)
- func (r *RDBDriver) MigrateDB() error
- func (r *RDBDriver) Name() string
- func (r *RDBDriver) OpenDB(dbType, dbPath string, debugSQL bool) (locked bool, err error)
- type RedisDriver
- func (r *RedisDriver) GetExploitAll() (exploits []*models.Exploit)
- func (r *RedisDriver) GetExploitByCveID(cveID string) (exploits []*models.Exploit)
- func (r *RedisDriver) GetExploitByID(exploitDBID string) (exploits []*models.Exploit)
- func (r *RedisDriver) GetExploitMultiByCveID(cveIDs []string) (exploitsMap map[string][]*models.Exploit)
- func (r *RedisDriver) InsertExploit(exploits []*models.Exploit) (err error)
- func (r *RedisDriver) MigrateDB() error
- func (r *RedisDriver) Name() string
- func (r *RedisDriver) OpenDB(dbType, dbPath string, debugSQL bool) (locked bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { Name() string OpenDB(dbType, dbPath string, debugSQL bool) (bool, error) MigrateDB() error GetExploitByID(string) []*models.Exploit GetExploitByCveID(string) []*models.Exploit GetExploitMultiByCveID([]string) map[string][]*models.Exploit InsertExploit([]*models.Exploit) error GetExploitAll() []*models.Exploit }
DB :
type RDBDriver ¶
type RDBDriver struct {
// contains filtered or unexported fields
}
RDBDriver :
func (*RDBDriver) GetExploitAll ¶
GetExploitAll :
func (*RDBDriver) GetExploitByCveID ¶
GetExploitByCveID :
func (*RDBDriver) GetExploitByID ¶
GetExploitByID :
func (*RDBDriver) GetExploitMultiByCveID ¶
GetExploitMultiByCveID :
func (*RDBDriver) GetExploitMultiByID ¶
GetExploitMultiByID :
func (*RDBDriver) InsertExploit ¶
InsertExploit :
type RedisDriver ¶
type RedisDriver struct {
// contains filtered or unexported fields
}
RedisDriver is Driver for Redis
func (*RedisDriver) GetExploitAll ¶
func (r *RedisDriver) GetExploitAll() (exploits []*models.Exploit)
GetExploitAll :
func (*RedisDriver) GetExploitByCveID ¶
func (r *RedisDriver) GetExploitByCveID(cveID string) (exploits []*models.Exploit)
GetExploitByCveID :
func (*RedisDriver) GetExploitByID ¶
func (r *RedisDriver) GetExploitByID(exploitDBID string) (exploits []*models.Exploit)
GetExploitByID :
func (*RedisDriver) GetExploitMultiByCveID ¶
func (r *RedisDriver) GetExploitMultiByCveID(cveIDs []string) (exploitsMap map[string][]*models.Exploit)
GetExploitMultiByCveID :
func (*RedisDriver) InsertExploit ¶
func (r *RedisDriver) InsertExploit(exploits []*models.Exploit) (err error)
InsertExploit :
Click to show internal directories.
Click to hide internal directories.