mpmap

package
Version: v0.0.0-...-3faa710 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

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

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 (m *BaseBaiDu) GetRequest() (*fasthttp.Client, *fasthttp.Request)

func (*BaseBaiDu) GetRespTag

func (m *BaseBaiDu) GetRespTag() string

func (*BaseBaiDu) SetCheckType

func (m *BaseBaiDu) SetCheckType(checkType string)

func (*BaseBaiDu) SetReqRefer

func (m *BaseBaiDu) SetReqRefer(reqRefer string)

func (*BaseBaiDu) SetRespTag

func (m *BaseBaiDu) SetRespTag(respTag string)

func (*BaseBaiDu) SetServiceUri

func (m *BaseBaiDu) SetServiceUri(uri string)

func (*BaseBaiDu) SetSk

func (m *BaseBaiDu) SetSk(sk string)

type BaseGaoDe

type BaseGaoDe struct {
	// contains filtered or unexported fields
}

func NewBaseGaoDe

func NewBaseGaoDe() BaseGaoDe

func (*BaseGaoDe) GetRequest

func (m *BaseGaoDe) GetRequest() (*fasthttp.Client, *fasthttp.Request)

func (*BaseGaoDe) GetRespTag

func (m *BaseGaoDe) GetRespTag() string

func (*BaseGaoDe) SetRespTag

func (m *BaseGaoDe) SetRespTag(respTag string)

func (*BaseGaoDe) SetServiceUri

func (m *BaseGaoDe) SetServiceUri(uri string)

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)

type IMapBase

type IMapBase interface {
	api.IAPIOuter
	GetRespTag() string
}

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.

Jump to

Keyboard shortcuts

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