Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
func Get ¶
Do Get request Parameters
$url: the get API call end point $key: the key to be get
Return
'code': the HTTP status code. 'response': the data of string or the error message string.
func GetVersion ¶
Get the key of a version Parameters
$url: the get API call end point $key: the key to be get $version: the version of key to be get
Return
'code': the HTTP status code. 'response': the data of string or the error message string.
func ListVersions ¶
Get version list of the key Parameters
$url: the get API call end point $key: the key to be get $opts: a map[string]stirng, which contains: "olderthan": an version_id "maxcount": how many version returned "withtimestamp": whether return timestamp for each version_id
Return
'code': the HTTP status code. 'response': the data of string or the error message string.
type VersionRecord ¶
type VersionRecord struct { VersionNumber string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.