config

package
v0.0.0-...-bd2345a Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SafeWriteFile

func SafeWriteFile(name string, data []byte, perm os.FileMode) error

Types

type BaseLogging

type BaseLogging struct {
	Level string

	NegateSubsystems bool
	Subsystems       []string
}

type FileLogging

type FileLogging struct {
	BaseLogging

	Filename string
	Size     int
	Count    int
	Compress bool
}

type GatewayConfig

type GatewayConfig struct {
	Name   string `json:"-"`
	Type   string
	Config interface{}
}

func (*GatewayConfig) UnmarshalJSON

func (g *GatewayConfig) UnmarshalJSON(data []byte) error

type HTTPInterfaceConfig

type HTTPInterfaceConfig struct {
	Port        int
	EnabledAPIs []string
}

type InterfaceConfig

type InterfaceConfig struct {
	Name   string `json:"-"`
	Type   string
	Config interface{}
}

func (*InterfaceConfig) UnmarshalJSON

func (g *InterfaceConfig) UnmarshalJSON(data []byte) error

type LoggingConfig

type LoggingConfig struct {
	Name   string `json:"-"`
	Type   string
	Config interface{}
}

func (*LoggingConfig) UnmarshalJSON

func (g *LoggingConfig) UnmarshalJSON(data []byte) error

type MQTTCredentials

type MQTTCredentials struct {
	Username string
	Password string
}

type MQTTInterfaceConfig

type MQTTInterfaceConfig struct {
	Server string

	TLS         *MQTTTLS
	Credentials *MQTTCredentials

	Retained    bool
	QOS         byte
	TopicPrefix string

	PublishStateOnConnect  bool
	PublishAggregatedState bool
	PublishIndividualState bool
}

type MQTTTLS

type MQTTTLS struct {
	IgnoreSystemRootCertificates bool
	SkipCertificateVerification  bool
	Key                          string
	Cert                         string
	CACert                       string
}

type StdoutLogging

type StdoutLogging struct {
	BaseLogging
}

type ZDAConfig

type ZDAConfig struct {
	Provider ZDAProvider
	Network  *zigbee.NetworkConfiguration
	Rules    string
}

type ZDAProvider

type ZDAProvider struct {
	Type   string
	Config interface{}
}

func (*ZDAProvider) UnmarshalJSON

func (g *ZDAProvider) UnmarshalJSON(data []byte) error

type ZStackProvider

type ZStackProvider struct {
	Port struct {
		Name string
		Baud int
	}
}

Jump to

Keyboard shortcuts

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