api

package
v0.0.0-...-69b6b67 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const API_TIMEOUT_SECS = 10

Variables

This section is empty.

Functions

func Get

func Get(url string, token string, result interface{}) error

func Get_

func Get_(url string, token string, timeOutSec int, result interface{}) error

func POST

func POST(url string, token string, postData interface{}, result interface{}) error

func POST_

func POST_(url string, token string, postData interface{}, timeOutSec int, result interface{}) error

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

Jump to

Keyboard shortcuts

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