common

package
v0.0.0-...-a1b785a Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source

BANNER :: Alerteye banner

Variables

This section is empty.

Functions

func PrintBanner

func PrintBanner()

PrintBanner :: Print Alerteye banner

Types

type Alert

type Alert struct {
	Date        string `json:"date"`
	Title       string `json:"title"`
	Topic       Topic  `json:"topic"`
	Source      Source `json:"source"`
	Description string `json:"description"`
	URL         string `json:"url"`
}

Alert :: Alert struct Date: Article publish date Title: Article title Topic: Article topic Source: Article source Description: Article description URL: Article url

type Source

type Source struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

Source :: Source struct Name: The name of the source URL: URL address of the source

type Topic

type Topic struct {
	Name     string   `json:"name"`
	Keywords []string `json:"keywords"`
}

Topic :: Topic struct Name: The name of the topic Keywords: List of keywords for topic

Jump to

Keyboard shortcuts

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