github.com/frankrap/okex-api@v1.0.4/constants.go (about) 1 package okex 2 3 /* 4 constants 5 @author Tony Tian 6 @date 2018-03-17 7 @version 1.0.0 8 */ 9 10 const ( 11 /* 12 http headers 13 */ 14 OK_ACCESS_KEY = "OK-ACCESS-KEY" 15 OK_ACCESS_SIGN = "OK-ACCESS-SIGN" 16 OK_ACCESS_TIMESTAMP = "OK-ACCESS-TIMESTAMP" 17 OK_ACCESS_PASSPHRASE = "OK-ACCESS-PASSPHRASE" 18 19 /** 20 paging params 21 */ 22 OK_FROM = "OK-FROM" 23 OK_TO = "OK-TO" 24 OK_LIMIT = "OK-LIMIT" 25 26 CONTENT_TYPE = "Content-Type" 27 ACCEPT = "Accept" 28 COOKIE = "Cookie" 29 LOCALE = "locale=" 30 31 APPLICATION_JSON = "application/json" 32 APPLICATION_JSON_UTF8 = "application/json; charset=UTF-8" 33 34 /* 35 i18n: internationalization 36 */ 37 ENGLISH = "en_US" 38 SIMPLIFIED_CHINESE = "zh_CN" 39 //zh_TW || zh_HK 40 TRADITIONAL_CHINESE = "zh_HK" 41 42 /* 43 http methods 44 */ 45 GET = "GET" 46 POST = "POST" 47 DELETE = "DELETE" 48 49 /* 50 others 51 */ 52 ResultDataJsonString = "resultDataJsonString" 53 ResultPageJsonString = "resultPageJsonString" 54 )