data

package
v0.0.0-...-d6dc670 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "DEVELOPMENT"

Functions

This section is empty.

Types

type Preferences

type Preferences struct {
	Theme     string
	JsEnabled bool
	Themes    []string
	Frontends []cleaner.Frontend
}

func NewPrefs

func NewPrefs() *Preferences

func (*Preferences) Parse

func (prefs *Preferences) Parse(r *http.Request)

func (*Preferences) ParseCookies

func (prefs *Preferences) ParseCookies(r *http.Request)

func (*Preferences) ToMap

func (prefs *Preferences) ToMap() map[string]string

type ResultItem

type ResultItem struct {
	Title     string
	URL       string
	WordCount int
	Size      string
	TimeStamp string
}

type SearchResult

type SearchResult struct {
	Query struct {
		Search []struct {
			Title     string `json:"title"`
			WordCount int    `json:"wordcount"`
			Size      int64  `json:"size"`
			TimeStamp string `json:"timestamp"`
		} `json:"search"`
	} `json:"query"`
}

type SearchResults

type SearchResults struct {
	Wikiname string
	Query    string
	Results  []ResultItem
}

type Wiki

type Wiki struct {
	Name     string
	Head     string
	WikiName string
	Body     string
}

func (*Wiki) Parse

func (w *Wiki) Parse(doc *goquery.Document, wikiname string, theme string, frontends []cleaner.Frontend, js bool) error

Jump to

Keyboard shortcuts

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