Documentation ¶
Overview ¶
*
- Created by GoLand.
- User: 姜伟
- Date: 2019/12/25 0025
- Time: 22:52
*
- Created by GoLand.
- User: 姜伟
- Date: 2019/12/25 0025
- Time: 11:42
*
- Created by GoLand.
- User: 姜伟
- Date: 2019/12/25 0025
- Time: 23:23
*
- Created by GoLand.
- User: 姜伟
- Date: 2019/12/25 0025
- Time: 10:40
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/17 0017
- Time: 16:32
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/17 0017
- Time: 16:32
*
- Created by GoLand.
- User: 姜伟
- Date: 2020/1/17 0017
- Time: 16:32
Index ¶
- Constants
- Variables
- func NewConfigBaiDu() *configBaiDu
- func NewConfigGaoDe() *configGaoDe
- func NewConfigTencent() *configTencent
- func NewUtilMap() *utilMap
- type BaseBaiDu
- func (m *BaseBaiDu) GetRequest() (*fasthttp.Client, *fasthttp.Request)
- func (m *BaseBaiDu) GetRespTag() string
- func (m *BaseBaiDu) SetCheckType(checkType string)
- func (m *BaseBaiDu) SetReqRefer(reqRefer string)
- func (m *BaseBaiDu) SetRespTag(respTag string)
- func (m *BaseBaiDu) SetServiceUri(uri string)
- func (m *BaseBaiDu) SetSk(sk string)
- type BaseGaoDe
- type BaseTencent
- func (t *BaseTencent) GetRequest() (*fasthttp.Client, *fasthttp.Request)
- func (m *BaseTencent) GetRespTag() string
- func (t *BaseTencent) SetAppIdentifier(appIdentifier string)
- func (t *BaseTencent) SetGetType(getType string)
- func (m *BaseTencent) SetRespTag(respTag string)
- func (t *BaseTencent) SetServiceUrl(serviceUrl string)
- type IMapBase
Constants ¶
View Source
const ( // 百度 BaiDuCheckTypeServerIp = "server-ip" // 校验类型-服务端ip BaiDuCheckTypeServerSn = "server-sn" // 校验类型-服务端签名 BaiDuCheckTypeBrowse = "browse" // 校验类型-浏览器 // 腾讯 TencentGetTypeServer = "server" // 获取类型-服务端 TencentGetTypeMobile = "mobile" // 获取类型-移动端 TencentGetTypeBrowse = "browse" // 获取类型-网页端 )
Variables ¶
View Source
var ( BdCheckTypes map[string]int TencentGetTypes map[string]int )
Functions ¶
func NewConfigBaiDu ¶
func NewConfigBaiDu() *configBaiDu
func NewConfigGaoDe ¶
func NewConfigGaoDe() *configGaoDe
func NewConfigTencent ¶
func NewConfigTencent() *configTencent
func NewUtilMap ¶
func NewUtilMap() *utilMap
Types ¶
type BaseBaiDu ¶
type BaseBaiDu struct {
// contains filtered or unexported fields
}
func NewBaseBaiDu ¶
func NewBaseBaiDu() BaseBaiDu
func (*BaseBaiDu) GetRequest ¶
func (*BaseBaiDu) GetRespTag ¶
func (m *BaseBaiDu) GetRespTag() string
func (*BaseBaiDu) SetCheckType ¶
func (*BaseBaiDu) SetReqRefer ¶
func (*BaseBaiDu) SetRespTag ¶
func (m *BaseBaiDu) SetRespTag(respTag string)
func (*BaseBaiDu) SetServiceUri ¶
type BaseGaoDe ¶
type BaseGaoDe struct {
// contains filtered or unexported fields
}
func NewBaseGaoDe ¶
func NewBaseGaoDe() BaseGaoDe
func (*BaseGaoDe) GetRequest ¶
func (*BaseGaoDe) GetRespTag ¶
func (m *BaseGaoDe) GetRespTag() string
func (*BaseGaoDe) SetRespTag ¶
func (m *BaseGaoDe) SetRespTag(respTag string)
func (*BaseGaoDe) SetServiceUri ¶
type BaseTencent ¶
type BaseTencent struct {
// contains filtered or unexported fields
}
func NewBaseTencent ¶
func NewBaseTencent() BaseTencent
func (*BaseTencent) GetRequest ¶
func (t *BaseTencent) GetRequest() (*fasthttp.Client, *fasthttp.Request)
func (*BaseTencent) GetRespTag ¶
func (m *BaseTencent) GetRespTag() string
func (*BaseTencent) SetAppIdentifier ¶
func (t *BaseTencent) SetAppIdentifier(appIdentifier string)
func (*BaseTencent) SetGetType ¶
func (t *BaseTencent) SetGetType(getType string)
func (*BaseTencent) SetRespTag ¶
func (m *BaseTencent) SetRespTag(respTag string)
func (*BaseTencent) SetServiceUrl ¶
func (t *BaseTencent) SetServiceUrl(serviceUrl string)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
* * Created by GoLand.
|
* * Created by GoLand. |
* * 输入提示 * User: 姜伟 * Date: 2019/12/26 0026 * Time: 18:35 * * Created by GoLand.
|
* * 输入提示 * User: 姜伟 * Date: 2019/12/26 0026 * Time: 18:35 * * Created by GoLand. |
* * Created by GoLand.
|
* * Created by GoLand. |
Click to show internal directories.
Click to hide internal directories.