manifest

package
v0.0.0-...-f0b8276 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input []WebsiteConfig

type Manifest

type Manifest struct {
	Websites map[string]Website `json:"websites"`
}

func BuildManifest

func BuildManifest(input *Input) (*Manifest, error)

type Resource

type Resource struct {
	URL          string `json:"url"`
	ContentType  string `json:"content_type"`
	Order        int    `json:"order"`
	Dependencies []int  `json:"dependencies"`
}

type Website

type Website struct {
	URL       string     `json:"url"`
	Favicon   string     `json:"favicon"`
	Resources []Resource `json:"resources"`
	Updated   string     `json:"updated"`
}

func SummarizeWebsite

func SummarizeWebsite(url string) (*Website, error)

type WebsiteConfig

type WebsiteConfig struct {
	Title string `json:"title"`
	URL   string `json:"url"`
}

Jump to

Keyboard shortcuts

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