Documentation
¶
Index ¶
Constants ¶
View Source
const REQUEST_DELAY = 1 // true value = 1/3 req per sec
Rate limit: 9 requests / 3 seconds
Variables ¶
This section is empty.
Functions ¶
func Rate_limit ¶
func Rate_limit()
Types ¶
type VoeGetNextServ ¶
type VoeGetNextServ struct {
ServerTime string `json:"server_time"`
Msg string `json:"msg"`
Message string `json:"message"`
Status int `json:"status"`
Success bool `json:"success"`
Result string `json:"result"`
}
func Get_next_server ¶
func Get_next_server(api_key string) (VoeGetNextServ, error)
type VoePostUpload ¶
type VoePostUpload struct {
Success bool `json:"success"`
Message string `json:"message"`
File struct {
ID int `json:"id"`
FileCode string `json:"file_code"`
FileTitle string `json:"file_title"`
EncodingNecessary bool `json:"encoding_necessary"`
} `json:"file"`
}
func Post_upload ¶
func Post_upload(api_key string, upload_url string, file_path string) (VoePostUpload, error)
Click to show internal directories.
Click to hide internal directories.