wordpress

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

func New

func New(url string, userAgent string, apiVersion string) *API

func (*API) GetLatestVersion

func (api *API) GetLatestVersion(version string) WordPressOffer

func (*API) GetUsers

func (api *API) GetUsers() []User

type User

type User struct {
	ID          int    `json:"id"`
	Name        string `json:"name"`
	URL         string `json:"url"`
	Description string `json:"description"`
	Link        string `json:"link"`
	Slug        string `json:"slug"`
}

type WordPressOffer

type WordPressOffer struct {
	Response     string `json:"response"`
	Download     string `json:"download"`
	Current      string `json:"current"`
	Version      string `json:"version"`
	PHPVersion   string `json:"php_version"`
	MySQLVersion string `json:"mysql_version"`
}

type WordPressUpdate

type WordPressUpdate struct {
	Offers []WordPressOffer `json:"offers"`
}

Jump to

Keyboard shortcuts

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