camino

package module
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFileMode = permUrwGrwOr
)
View Source
const Layout = "2006-01-02-15-04-05"

Variables

This section is empty.

Functions

func AllMatches added in v0.2.11

func AllMatches(doc *html.Node, delegate Matcher, limit int) []*html.Node

func CleanupTimed added in v0.2.12

func CleanupTimed(dir AbsDir, delete bool) error

func Compress added in v0.2.12

func Compress(src, dst AbsDir) error

func GetAbs

func GetAbs(absolutePath AbsDir) string

func GetAttribute added in v0.2.11

func GetAttribute(node *html.Node, attribute string) string

func GetRel

func GetRel(relativePath RelDir, absolutePath AbsDir) string

func Match added in v0.2.11

func Match(doc *html.Node, delegate Matcher) *html.Node

func ReadOverrides added in v0.2.9

func ReadOverrides(path string) (map[string]string, error)

func Register

func Register(absolutePaths map[AbsDir]string, relativeNames map[RelDir]string, relativeAbsoluteParents map[RelDir][]AbsDir) error

func ResolveAbsPaths added in v0.2.15

func ResolveAbsPaths(rootPath string, absDirNames map[AbsDir]string, overrides map[string]string) map[AbsDir]string

func Sanitize

func Sanitize(s string) string

func ServeFile added in v0.2.17

func ServeFile(w http.ResponseWriter, r *http.Request, absPath string, opts ...ServeOption)

func TextContent added in v0.2.11

func TextContent(node *html.Node) string

func TimestampedTarGzFilename added in v0.2.13

func TimestampedTarGzFilename() string

Types

type AbsDir

type AbsDir int

type Matcher added in v0.2.11

type Matcher interface {
	Match(node *html.Node) bool
}

func AtomClassMatcher added in v0.2.11

func AtomClassMatcher(a atom.Atom, class string, equals bool) Matcher

func AtomIdMatcher added in v0.2.11

func AtomIdMatcher(a atom.Atom, id string) Matcher

func AtomMatcher added in v0.2.11

func AtomMatcher(a atom.Atom) Matcher

func SelectorMatcher added in v0.2.11

func SelectorMatcher(query string) Matcher

type RelDir

type RelDir int

type ServeOption added in v0.2.17

type ServeOption int
const (
	NoCacheControl ServeOption = iota
	NoContentDisposition
	NoContentLength
	NoBinaryContentType
	NoLastModified
)

Jump to

Keyboard shortcuts

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