added Dormakaba lock server integration

This commit is contained in:
2026-06-02 10:10:17 +01:00
parent b982698ccd
commit ffd814e076
8 changed files with 326 additions and 25 deletions
+4 -3
View File
@@ -1,3 +1,4 @@
// Package config handles reading and parsing configuration from config.yml.
package config
import (
@@ -10,10 +11,10 @@ import (
yaml "gopkg.in/yaml.v3"
)
// configRec holds values from config.yml.
// ConfigRec holds values from config.yml.
type ConfigRec struct {
Port int `yaml:"port"`
LockserverUrl string `yaml:"lockservUrl"`
LockserverURL string `yaml:"lockservUrl"`
LockType string `yaml:"lockType"`
EncoderAddress string `yaml:"encoderAddr"`
Cert string `yaml:"cert"`
@@ -32,7 +33,7 @@ type ConfigRec struct {
SendErrorEmails []string `yaml:"senderroremails"`
}
// ReadConfig reads config.yml and applies defaults.
// ReadHardlinkConfig reads config.yml and applies defaults.
func ReadHardlinkConfig() ConfigRec {
var cfg ConfigRec
const configName = "config.yml"