bindings

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetBackupRequest

type GetBackupRequest struct {
	Uid       string `form:"uid"`
	Version   string `form:"version"`
	Revision  string `form:"revision"`
	DeviceKey string `form:"userkey"`
}

"userkey=" . $userkey .

"&revision=" . urlencode($_REQUEST['newver']) .
"&version=" . $g['product_version'] .
"&uid=" . urlencode($uniqueID));

type SaveBackupRequest

type SaveBackupRequest struct {
	Uid       string                `form:"uid"`
	Version   string                `form:"version"`
	DeviceKey string                `form:"userkey"`
	Reason    string                `form:"reason"`
	Content   *multipart.FileHeader `form:"file"`
	Hash      string                `form:"sha256_hash"`
	Hint      string                `form:"hint"`
	ManualMax int                   `form:"manmax"`
}

$post_fields = array(

	'reason' => htmlspecialchars($reason),
	'uid' => $uniqueID,
	'file' => curl_file_create($tmpname, 'image/jpg', 'config.jpg'),
	'userkey' => htmlspecialchars($userkey),
	'sha256_hash' => $raw_config_sha256_hash,
	'version' => $g['product_version'],
	'hint' => $config['system']['acb']['hint'],
	'manmax' => $manmax
);

type StatusResponse

type StatusResponse struct {
	Code     int              `json:"code"`
	Message  string           `json:"message"`
	Features *config.Features `json:"features,omitempty"`
}

Jump to

Keyboard shortcuts

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