client

package
v0.0.0-...-e88d80d Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewURL

func NewURL(params Params) string

Types

type Params

type Params struct {
	Query      string
	Name       string
	Desc       string
	Repo       string
	Arch       string
	Maintainer string
	Packager   string
	Flagged    bool
}

type Result

type Result struct {
	Limit    int64 `json:"limit"`
	NumPages int64 `json:"num_pages"`
	Page     int64 `json:"page"`
	Results  []struct {
		Arch           string    `json:"arch"`
		BuildDate      string    `json:"build_date"`
		Checkdepends   []string  `json:"checkdepends"`
		CompressedSize int       `json:"compressed_size"`
		Conflicts      []string  `json:"conflicts"`
		Depends        []string  `json:"depends"`
		Epoch          int       `json:"epoch"`
		Filename       string    `json:"filename"`
		FlagDate       time.Time `json:"flag_date"`
		Groups         []string  `json:"groups"`
		InstalledSize  int       `json:"installed_size"`
		LastUpdate     time.Time `json:"last_update"`
		Licenses       []string  `json:"licenses"`
		Maintainers    []string  `json:"maintainers"`
		Makedepends    []string  `json:"makedepends"`
		Optdepends     []string  `json:"optdepends"`
		Packager       string    `json:"packager"`
		Pkgbase        string    `json:"pkgbase"`
		Pkgdesc        string    `json:"pkgdesc"`
		Pkgname        string    `json:"pkgname"`
		Pkgrel         string    `json:"pkgrel"`
		Pkgver         string    `json:"pkgver"`
		Provides       []string  `json:"provides"`
		Replaces       []string  `json:"replaces"`
		Repo           string    `json:"repo"`
		URL            string    `json:"url"`
	} `json:"results"`
	Valid   bool  `json:"valid"`
	Version int64 `json:"version"`
}

func Execute

func Execute(url string) Result

Jump to

Keyboard shortcuts

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