config

package
v0.0.0-...-34aea0c Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package config is configuration for testing

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(configFilePath string)

LoadConfig handles loading configuration for Viper using configuration file, environment variables and default values

Types

type MQTTConnect

type MQTTConnect struct {
	ClientID   string
	RootCA     []byte
	ClientCert []byte
	ClientKey  []byte
}

MQTTConnect holds the credentials for MQTT connection

func LoadDeviceTwinConfig

func LoadDeviceTwinConfig(configFilePath string) *MQTTConnect

LoadDeviceTwinConfig loads all configuration for the service, including base Viper LoadConfig

func TestMQTTConnect

func TestMQTTConnect() *MQTTConnect

TestMQTTConnect creates config settings for testing

Directories

Path Synopsis
Package keys contains the constant values for the configuration keys
Package keys contains the constant values for the configuration keys

Jump to

Keyboard shortcuts

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