aur

package
v0.0.0-...-50debf6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(searchType SearchType, value url.Values, response interface{}) error

func SetUserAgent

func SetUserAgent(value string)

Types

type Package

type Package struct {
	ID             int64       `json:"ID"`
	Name           string      `json:"Name"`
	PackageBaseID  int64       `json:"PackageBaseID"`
	PackageBase    string      `json:"PackageBase"`
	Version        string      `json:"Version"`
	Description    string      `json:"Description"`
	URL            string      `json:"URL"`
	NumVotes       int64       `json:"NumVotes"`
	Popularity     int64       `json:"Popularity"`
	OutOfDate      interface{} `json:"OutOfDate"`
	Maintainer     string      `json:"Maintainer"`
	FirstSubmitted int64       `json:"FirstSubmitted"`
	LastModified   int64       `json:"LastModified"`
	URLPath        string      `json:"URLpath"`
}

type ResponseInfo

type ResponseInfo struct {
	Version     int       `json:"version"`
	Type        string    `json:"type"`
	ResultCount int       `json:"resultcount"`
	Packages    []Package `json:"results"`
}

func FindPackageByNameInAur

func FindPackageByNameInAur(name string) (*ResponseInfo, error)

func GetPackageInfoByName

func GetPackageInfoByName(name string) (*ResponseInfo, error)

type SearchType

type SearchType int
const (
	Search SearchType = iota
	Info
	Multiinfo
	Error
)

func (SearchType) String

func (s SearchType) String() string

Jump to

Keyboard shortcuts

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