man

package
v0.0.0-...-e8a2a15 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CacheNotFoundError = errors.New("cache: page not found")
	CacheStaleError    = errors.New("cache: page stale")
)

Functions

func Fetch

func Fetch(k Key, w io.Writer) error

func Render

func Render(r io.Reader) error

Types

type Cache

type Cache struct {
	Root string
}

func (*Cache) Get

func (c *Cache) Get(k Key, ttl time.Duration) (io.ReadCloser, error)

func (*Cache) Put

func (c *Cache) Put(k Key, r io.Reader) (err error)

type FetchError

type FetchError struct {
	Err error
	// contains filtered or unexported fields
}

func (FetchError) Error

func (e FetchError) Error() string

func (FetchError) IsNotFound

func (e FetchError) IsNotFound() bool

type HTTPError

type HTTPError struct {
	URL        *url.URL
	Status     string
	StatusCode int
}

func (HTTPError) Error

func (e HTTPError) Error() string

type Key

type Key struct {
	Page string
	Dist string
	Lang string
}

Key identifies a Debian manual page document.

Jump to

Keyboard shortcuts

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