internal

package
v0.0.0-...-1944fff Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddImages

func AddImages(ctx context.Context, content string, e *epub.Epub) string

func AddQRCode

func AddQRCode(ctx context.Context, url string, e *epub.Epub)

func Epub

func Epub(w http.ResponseWriter, r *http.Request)

func GenerateEpub

func GenerateEpub(ctx context.Context, entry Entry, outdir string) (string, error)

func Index

func Index(w http.ResponseWriter, r *http.Request)

func SaveEntry

func SaveEntry(ctx context.Context, e Entry, dir string) (string, error)

func SendToReMarkable

func SendToReMarkable(ctx context.Context, path string, dir string) error

func ServeHTTP

func ServeHTTP(w http.ResponseWriter, r *http.Request)

Types

type Entry

type Entry struct {
	Title       string    `json:"title"`
	Author      string    `json:"author"`
	URL         string    `json:"url"`
	Content     string    `json:"content"`
	PublishedAt time.Time `json:"published_at"`
	Feed        struct {
		Title string `json:"title"`
	} `json:"feed"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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