globalconfig

package
v0.0.0-...-610f8f3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type All

type All struct {
	Network      Network
	Log          string
	SponsorToken string
	Plant        string // telemetry plant id
	Telemetry    bool
	Metrics      bool
	Profile      bool
	Levels       map[string]string
	Interval     time.Duration
	Database     DB
	Mqtt         Mqtt
	ModbusProxy  []ModbusProxy
	Javascript   []Javascript
	Go           []Go
	Influx       Influx
	EEBus        eebus.Config
	HEMS         Hems
	Messaging    Messaging
	Meters       []config.Named
	Chargers     []config.Named
	Vehicles     []config.Named
	Tariffs      Tariffs
	Site         map[string]interface{}
	Loadpoints   []map[string]interface{}
	Circuits     []config.Named
}

type DB

type DB struct {
	Type string
	Dsn  string
}

type Go

type Go struct {
	VM     string
	Script string
}

type Hems

type Hems config.Typed

func (Hems) Redacted

func (c Hems) Redacted() any

type Influx

type Influx struct {
	URL      string `json:"url"`
	Database string `json:"database"`
	Token    string `json:"token"`
	Org      string `json:"org"`
	User     string `json:"user"`
	Password string `json:"password"`
	Insecure bool   `json:"insecure"`
}

Influx is the influx db configuration

func (Influx) Redacted

func (c Influx) Redacted() any

Redacted implements the redactor interface used by the tee publisher

type Javascript

type Javascript struct {
	VM     string
	Script string
}

type Messaging

type Messaging struct {
	Events   map[string]push.EventTemplateConfig
	Services []config.Typed
}

type ModbusProxy

type ModbusProxy struct {
	Port            int
	ReadOnly        string
	modbus.Settings `mapstructure:",squash"`
}

type Mqtt

type Mqtt struct {
	mqtt.Config `mapstructure:",squash"`
	Topic       string `json:"topic"`
}

func (Mqtt) Redacted

func (m Mqtt) Redacted() any

Redacted implements the redactor interface used by the tee publisher

type Network

type Network struct {
	Schema string `json:"schema"`
	Host   string `json:"host"`
	Port   int    `json:"port"`
}

func (Network) HostPort

func (c Network) HostPort() string

func (Network) URI

func (c Network) URI() string

type Tariffs

type Tariffs struct {
	Currency string
	Grid     config.Typed
	FeedIn   config.Typed
	Co2      config.Typed
	Planner  config.Typed
}

Jump to

Keyboard shortcuts

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