app

package
v0.0.0-...-78f6afa Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func CreateApp

func CreateApp(api *telegraph.Account, client *http.Client, author *Author) *App

func (*App) Fetch

func (a *App) Fetch(url string) (io.ReadCloser, error)

func (*App) Parse

func (a *App) Parse(body io.ReadCloser, link url.URL) (*readability.Article, error)

func (*App) Publish

func (a *App) Publish(article *readability.Article, source url.URL) ([]*telegraph.Page, error)

type Author

type Author struct {
	Name string
	URL  string
}

Jump to

Keyboard shortcuts

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