common

package
v0.0.0-...-715a37c Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseConnection

func CloseConnection()

func InitClientOptions

func InitClientOptions(conf Configuration)

Types

type Configuration

type Configuration struct {
	C8Y_SEREVR_URL      string
	DEVICE_NAME         string
	C8Y_TENENT          string
	C8Y_USERNAME        string
	C8Y_PASSWORD        string
	CLIENT_ID           string
	DEVICE_OPERATIONS   string
	SERIAL_NUMBER       string
	HARDWARE_MODEL      string
	REVESION            string
	REQUIRED_INTERVAL   string
	SMART_REST_TEMPLATE string
}

func GetConfiguration

func GetConfiguration(params ...string) Configuration

type Instance

type Instance struct {
	// contains filtered or unexported fields
}
var (
	Singletone *Instance
)

func GetInstance

func GetInstance() *Instance

func (*Instance) GetMqqtClient

func (client *Instance) GetMqqtClient() mqtt.Client

Jump to

Keyboard shortcuts

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