config

package
v0.0.0-...-2d43aa0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerConfig

type ControllerConfig struct {
	Protocol        string
	HeartbeatPeriod time.Duration
	RefreshInterval time.Duration
	CloudhubURL     string
	AuthInfosPath   string
	PlacementURL    string
	ProjectID       string
	NodeID          string
}

ControllerConfig defines controller configuration object type

type EdgeHubConfig

type EdgeHubConfig struct {
	WSConfig  WebSocketConfig
	CtrConfig ControllerConfig
	QcConfig  QuicConfig
}

EdgeHubConfig edge hub configuration object containing web socket and controller configuration

func GetConfig

func GetConfig() *EdgeHubConfig

GetConfig returns the EdgeHub configuration object

type QuicConfig

type QuicConfig struct {
	URL              string
	CaFilePath       string
	CertFilePath     string
	KeyFilePath      string
	HandshakeTimeout time.Duration
	ReadDeadline     time.Duration
	WriteDeadline    time.Duration
}

QuicConfig defines quic configuration object type

type WebSocketConfig

type WebSocketConfig struct {
	URL              string
	CertFilePath     string
	KeyFilePath      string
	HandshakeTimeout time.Duration
	ReadDeadline     time.Duration
	WriteDeadline    time.Duration
	ExtendHeader     http.Header
}

WebSocketConfig defines web socket configuration object type

Jump to

Keyboard shortcuts

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