Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 请求平台(1=taobao,2=jingdong.默认1) Platform string // AppKey 应用Key AppKey string // AppSecret 秘密 AppSecret string // Router 环境请求地址 Router = "http://gw.api.taobao.com/router/rest" // Session 用户登录授权成功后,TOP颁发给应用的授权信息。当此API的标签上注明:“需要授权”,则此参数必传;“不需要授权”,则此参数不需要传;“可选授权”,则此参数为可选 Session string // Timeout ... Timeout time.Duration //API Version ... V = "2.0" // CacheExpiration 缓存过期时间 CacheExpiration = time.Hour // GetCache 获取缓存 GetCache cache.GetCacheFunc // SetCache 设置缓存 SetCache cache.SetCacheFunc )
View Source
var ( ErrTypeIsNil = errors.New("类型为Nil") ErrTypeUnknown = errors.New("未处理到的数据类型") )
Functions ¶
func ExecuteCache ¶
ExecuteCache 执行API接口,缓存
Types ¶
Click to show internal directories.
Click to hide internal directories.