Documentation
¶
Index ¶
- Constants
- func Get(url string, token string, result interface{}) error
- func Get_(url string, token string, timeOutSec int, result interface{}) error
- func POST(url string, token string, postData interface{}, result interface{}) error
- func POST_(url string, token string, postData interface{}, timeOutSec int, ...) error
- type API_META_STATUS
- type API_META_VERSION
Constants ¶
View Source
const API_TIMEOUT_SECS = 10
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API_META_STATUS ¶
type API_META_STATUS struct {
Meta_status int `json:"meta_status"`
Meta_message string `json:"meta_message"`
}
func (*API_META_STATUS) MetaStatus ¶
func (apim *API_META_STATUS) MetaStatus(status int, message string)
assign status
type API_META_VERSION ¶
type API_META_VERSION struct {
Meta_version int `json:"meta_version"`
}
func (*API_META_VERSION) MetaVersion ¶
func (apim *API_META_VERSION) MetaVersion(version int)
assign version
Click to show internal directories.
Click to hide internal directories.