threatintel

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

type Aggregator struct {
	// contains filtered or unexported fields
}

func NewAggregator

func NewAggregator(dataDir string) (*Aggregator, error)

func (*Aggregator) Close

func (a *Aggregator) Close()

func (*Aggregator) Contains

func (a *Aggregator) Contains(ip string) bool

func (*Aggregator) GenerateFeedsMetadata

func (a *Aggregator) GenerateFeedsMetadata() map[string]FeedMetadata

func (*Aggregator) GetFeedMetadata

func (a *Aggregator) GetFeedMetadata(name string) *FeedMetadata

func (*Aggregator) GetFeedsMetadata

func (a *Aggregator) GetFeedsMetadata() map[string]*FeedMetadata

func (*Aggregator) Initialize

func (a *Aggregator) Initialize(metadata map[string]FeedMetadata) error

func (*Aggregator) UpdateFeedMetadata

func (a *Aggregator) UpdateFeedMetadata(name string, metadata *FeedMetadata) error

type FeedMetadata

type FeedMetadata struct {
	Name        string            `json:"name"`
	Description string            `json:"description"`
	Schedule    string            `json:"schedule"`
	Enabled     bool              `json:"enabled"`
	Params      map[string]string `json:"params"`
}

type ThreatFeed

type ThreatFeed interface {
	Name() string
	Description() string
	Schedule() string
	Fetch(params map[string]string) ([]string, error)
	DefaultParams() map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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