intel

package
v0.33.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package intel provides entry point for threat intel plugins

Index

Constants

This section is empty.

Variables

View Source
var Checkers = &checkerExt{
	newExtensionPoint(new(Checker)),
}

Checkers represent Checker extensionPoint

Functions

func RegisterExtension

func RegisterExtension(extension interface{}, name string) []string

RegisterExtension registers the extension

func UnregisterExtension

func UnregisterExtension(name string) []string

UnregisterExtension unregisters the extension

Types

type Checker

type Checker interface {
	CheckIP(ctx context.Context, ip string) (found bool, results []Result, err error)
	Initialize(config []byte) error
}

Checker defines the behaviour that must be implemented by an intel plugin

type Result

type Result struct {
	Provider string `json:"provider"`
	Term     string `json:"term"`
	Result   string `json:"result"`
}

Result defines the struct that must be returned by an intel plugin

Jump to

Keyboard shortcuts

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