edge

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandomString

func GetRandomString(length int) string

function to Generate Random string

Types

type Config

type Config struct {
	MqttEndpoint  string   `json:"mqttEndpoint"`
	TestManager   string   `json:"testManager"`
	EdgedEndpoint string   `json:"edgedEndpoint"`
	AppImageUrl   []string `json:"image_url"`
	NodeId        string   `json:"nodeId"`
}

config.json decode struct

func LoadConfig

func LoadConfig() Config

get config.json path

type TestContext

type TestContext struct {
	Cfg Config
}

Test context struct

func NewTestContext

func NewTestContext(cfg Config) *TestContext

function to get the testcontext Object.

Jump to

Keyboard shortcuts

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