csirtgsdk

package
v0.0.0-...-5947ead Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const VERSION = "0.0a3"

VERSION

Variables

This section is empty.

Functions

func CreateIndicator

func CreateIndicator(token string, user string, feed string, i *Indicator) bool

func ToCsv

func ToCsv(f *Feed)

Types

type Feed

type Feed struct {
	Name        string      `json:"name"`
	User        string      `json:"user"`
	Description string      `json:"description"`
	CreatedAt   string      `json:"created_at"`
	UpdatedAt   string      `json:"updated_at"`
	Indicators  []Indicator `json:"indicators"`
}

func GetFeed

func GetFeed(token string, user string, feed string, limit string) *Feed

type Indicator

type Indicator struct {
	Id          int      `json:"id"`
	Indicator   string   `json:"indicator"`
	Itype       string   `json:"itype"`
	Portlist    string   `json:"portlist"`
	Firsttime   string   `json:"firsttime"`
	Lasttime    string   `json:"lasttime"`
	CreatedAt   string   `json:"created_at"`
	UpdatedAt   string   `json:"updated_at"`
	Description string   `json:"description"`
	Count       int      `json:"count"`
	Asn         float32  `json:"asn"`
	Asn_desc    string   `json:"asn_desc"`
	Cc          string   `json:"cc"`
	Provider    string   `json:"provider"`
	Tags        []string `json:"tags"`
	Content     string   `json:"content"`
}

Jump to

Keyboard shortcuts

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