model

package
v0.0.0-...-9e0c801 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ASNList

type ASNList struct {
	ASN   string `json:"asn" bson:"asn"`
	Count int    `json:"count" bson:"count"`
}

ASNList used by TopListASN

type DomainList

type DomainList struct {
	Title    string
	List     []TLD
	Notice   int
	Warning  int
	Error    int
	Critical int
}

DomainList is used for rendering a domain list page

type Entry

type Entry struct {
	Timestamp  float64           `json:"timestamp" bson:"timestamp"`
	Module     string            `json:"module" bson:"module"`
	Level      string            `json:"level" bson:"level"`
	Tag        string            `json:"tag" bson:"tag"`
	Args       map[string]string `json:"args" bson:"args"`
	ArgsString template.HTML     // Only used for rendering results
}

Entry is used for all log entries for a TLD

type NSList

type NSList struct {
	NS    string `json:"ns" bson:"ns"`
	Count int    `json:"count" bson:"count"`
}

NSList used by TopListNS

type TLD

type TLD struct {
	ID     bson.ObjectId `json:"id" bson:"_id"`
	Name   string        `json:"name" bson:"name"`
	Level  string        `json:"level" bson:"level"`
	Result []Entry       `json:"result" bson:"result"`
}

TLD is the complete log for a domain

type TagList

type TagList struct {
	Tag   string `json:"tag" bson:"tag"`
	Count int    `json:"count" bson:"count"`
}

TagList used by TopListTags

type TopListASN

type TopListASN struct {
	ID   bson.ObjectId        `json:"id" bson:"_id"`
	Tag  string               `json:"tag" bson:"tag"`
	Data map[string][]ASNList `json:"data" bson:"data"`
}

TopListASN is the toplists for the ASN numbers

type TopListNS

type TopListNS struct {
	ID   bson.ObjectId       `json:"id" bson:"_id"`
	Tag  string              `json:"tag" bson:"tag"`
	Data map[string][]NSList `json:"data" bson:"data"`
}

TopListNS is the toplists for the name servers

type TopListTags

type TopListTags struct {
	ID   bson.ObjectId        `json:"id" bson:"_id"`
	Tag  string               `json:"tag" bson:"tag"`
	Data map[string][]TagList `json:"data" bson:"data"`
}

TopListTags is the toplist for the tags sorted by error levels

Jump to

Keyboard shortcuts

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