all repos — searchix @ 3be8a83d4c44f7e21277abde2da69b54111c1c1a

Search engine for NixOS, nix-darwin, home-manager and NUR users

internal/opensearch/opensearch.go (view raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package opensearch

import (
	"encoding/xml"

	"alin.ovh/searchix/internal/config"
)

type Description struct {
	XMLName     xml.Name `xml:"http://a9.com/-/spec/opensearch/1.1/ OpenSearchDescription"`
	Description string
	LongName    string
	ShortName   string
	SearchForm  *config.URL `xml:"http://www.mozilla.org/2006/browser/search/ SearchForm"`
	URL         URL         `xml:"Url"`
}

type URL struct {
	Method   string      `xml:"method,attr"`
	Template *config.URL `xml:"template,attr"`
	Type     string      `xml:"type,attr"`
}