Documentation ¶
Index ¶
- Variables
- func AddDomain(domain *Resource)
- func Crawl(input string, saveDir string) bool
- func DeleteAllDomains()
- func DeleteDomain(domainName string)
- func FailOnError(err error)
- func InitLogging(isQuiet bool, isVerbose bool, isTimestamped bool, ws *websocket.Conn)
- func IsWebpage(contentType string) bool
- func NewPool(server, password string) *redis.Pool
- func ToFriendlyName(raw_url string) (name string)
- func ToFriendlyStatus(status string, code int) string
- func ToFriendlyType(raw_type string) string
- func Version() string
- type Edge
- type Graph
- type Resource
- type Sitemap
- type UrlItem
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Pool *redis.Pool
)
Functions ¶
func DeleteAllDomains ¶
func DeleteAllDomains()
func DeleteDomain ¶
func DeleteDomain(domainName string)
func FailOnError ¶
func FailOnError(err error)
func InitLogging ¶
func ToFriendlyName ¶
func ToFriendlyStatus ¶
func ToFriendlyType ¶
Types ¶
type Resource ¶
type Resource struct { Name string LastAnalyzed string Url string Status string StatusCode int LastModified string Type string Links []*Resource Assets []*Resource }
func ListDomains ¶
func ListDomains() (domains []*Resource)
func LoadDomain ¶
func LoadResource ¶
func (*Resource) FriendlyName ¶
func (*Resource) FriendlyStatus ¶
func (*Resource) FriendlyType ¶
type Sitemap ¶
type Sitemap struct { XMLName xml.Name `xml:"urlset"` Namespace string `xml:"xmlns,attr"` Schema string `xml:"xmlns:xsi,attr"` SchemaLocation string `xml:"xsi:schemaLocation,attr"` Urls []UrlItem }
func GenerateSitemap ¶
func InitSitemap ¶
func InitSitemap() Sitemap
func WriteSitemap ¶
Click to show internal directories.
Click to hide internal directories.