models

package
v0.0.0-...-532d856 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: GPL-3.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleLink struct {
	ArticleId int    `json:"article_id" bson:"_id"`
	URL       string `json:"url"        bson:"url"`
	Timestamp int64  `json:"timestamp"  bson:"timestamp"`
}
type LinkList struct {
	SiteName string        `json:"site_name"`
	Links    []ArticleLink `json:"links"`
}

type Site

type Site struct {
	ID        int    `json:"_id"`       //ID for Internal Use
	Name      string `json:"name"`      //Name of the Site
	URL       string `json:"url"`       //to the Site
	LinkRegex string `json:"linkregex"` //to find te Links
	IDRegex   string `json:"idregex"`   //to extract the ID
}

Jump to

Keyboard shortcuts

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