joshuar-go-hass-agent/internal/linux/net/preferences.go

22 lines
587 B
Go

// Copyright 2024 Joshua Rich <joshua.rich@gmail.com>.
// SPDX-License-Identifier: MIT
package net
import (
"github.com/joshuar/go-hass-agent/internal/components/preferences"
)
const (
prefPrefix = preferences.SensorsPrefPrefix + "network" + preferences.PathDelim
loopbackDeviceName = "lo"
)
var defaultIgnoredDevices = []string{}
//nolint:lll
type WorkerPrefs struct {
IgnoredDevices []string `toml:"ignored_devices" comment:"List of prefixes to match for devices to ignore, for e.g., 'eth' will ignore all devices starting with eth."`
preferences.CommonWorkerPrefs
}