eclipse/lib/follower/config.go

18 lines
362 B
Go
Raw Normal View History

2024-01-19 21:02:27 +00:00
// Copyright (C) 2024 Umorpha Systems
// SPDX-License-Identifier: AGPL-3.0-or-later
package follower
import (
"git.mothstuff.lol/lukeshu/eclipse/lib/common"
)
type Config struct {
LeaderURL string `json:"leader_url"`
APIKeyFile string `json:"apikey_file"`
}
func LoadConfig(filename string) (Config, error) {
return common.LoadYAML[Config](filename)
}