mpiot

package
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: 13 Imported by: 0

Documentation

Overview

*

  • Created by GoLand.
  • User: 姜伟
  • Date: 2020/2/1 0001
  • Time: 15:14

*

  • Created by GoLand.
  • User: 姜伟
  • Date: 2020/2/1 0001
  • Time: 15:15

*

  • Created by GoLand.
  • User: 姜伟
  • Date: 2020/2/1 0001
  • Time: 15:15

*

  • Created by GoLand.
  • User: 姜伟
  • Date: 2020/2/1 0001
  • Time: 15:15

Index

Constants

View Source
const (
	BaiDuDomainBJ     = "iot.bj.baidubce.com"
	BaiDuDomainBJMqtt = "api.mqtt.iot.bj.baidubce.com"
	BaiDuDomainGZ     = "iot.gz.baidubce.com"
	BaiDuDomainGZMqtt = "api.mqtt.iot.gz.baidubce.com"
)

Variables

View Source
var (
	BaiDuDomains map[string]int
)

Functions

func NewConfig

func NewConfig() *configIot

func NewUtil

func NewUtil() *utilIot

Types

type BaseBaiDu

type BaseBaiDu struct {
	ServiceUri string // 服务URI
	// contains filtered or unexported fields
}

func NewBaseBaiDu

func NewBaseBaiDu() BaseBaiDu

func (*BaseBaiDu) GetRequest

func (bd *BaseBaiDu) GetRequest() (*fasthttp.Client, *fasthttp.Request)

func (*BaseBaiDu) GetServiceUrl

func (bd *BaseBaiDu) GetServiceUrl() string

func (*BaseBaiDu) SetServiceDomain

func (bd *BaseBaiDu) SetServiceDomain(serviceDomain string)

func (*BaseBaiDu) SetServiceProtocol

func (bd *BaseBaiDu) SetServiceProtocol(serviceProtocol 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) SetServiceDomain

func (t *BaseTencent) SetServiceDomain(serviceDomain string)

Directories

Path Synopsis
baidu
action
* * Created by GoLand.
* * Created by GoLand.
auth
* * Created by GoLand.
* * Created by GoLand.
client
* * Created by GoLand.
* * Created by GoLand.
endpoint
* * Created by GoLand.
* * Created by GoLand.
management/device
* * Created by GoLand.
* * Created by GoLand.
management/domain
* * Created by GoLand.
* * Created by GoLand.
management/ota
* * Created by GoLand.
* * Created by GoLand.
permission
* * Created by GoLand.
* * Created by GoLand.
policy
* * Created by GoLand.
* * Created by GoLand.
principal
* * Created by GoLand.
* * Created by GoLand.
rules
* * Created by GoLand.
* * Created by GoLand.
thing
* * Created by GoLand.
* * Created by GoLand.
usage
* * Created by GoLand.
* * Created by GoLand.
tencent
device
* * Created by GoLand.
* * Created by GoLand.
model
* * Created by GoLand.
* * Created by GoLand.
project
* * Created by GoLand.
* * Created by GoLand.
studio
* * Created by GoLand.
* * Created by GoLand.

Jump to

Keyboard shortcuts

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