// Copyright (C) 2019-2024 Chrystian Huot // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see package main type Defaults struct { adminPassword string adminPasswordNeedChange bool access DefaultAccess apikey DefaultApikey dirwatch DefaultDirwatch downstream DefaultDownstream groups []string keypadBeeps string options DefaultOptions systems []System tags []string } type DefaultAccess struct { ident string systems string } type DefaultApikey struct { ident string systems string } type DefaultDirwatch struct { delay uint deleteAfter bool disabled bool kind string } type DefaultDownstream struct { systems string } type DefaultOptions struct { autoPopulate bool audioConversion uint dimmerDelay uint disableDuplicateDetection bool duplicateDetectionTimeFrame uint keypadBeeps string maxClients uint playbackGoesLive bool pruneDays uint showListenersCount bool sortTalkgroups bool time12hFormat bool } var defaults Defaults = Defaults{ adminPassword: "rdio-scanner", adminPasswordNeedChange: true, access: DefaultAccess{ ident: "Unknown", systems: "*", }, apikey: DefaultApikey{ ident: "Unknown", systems: "*", }, dirwatch: DefaultDirwatch{ delay: 2000, deleteAfter: true, disabled: false, kind: "default", }, downstream: DefaultDownstream{ systems: "*", }, groups: []string{ "Air", "EMS", "Fire", "Interop", "Law", "Unknown", }, keypadBeeps: "uniden", options: DefaultOptions{ audioConversion: AUDIO_CONVERSION_ENABLED, autoPopulate: true, dimmerDelay: 5000, disableDuplicateDetection: false, duplicateDetectionTimeFrame: 500, keypadBeeps: "uniden", maxClients: 200, playbackGoesLive: false, pruneDays: 7, showListenersCount: false, sortTalkgroups: false, time12hFormat: false, }, systems: []System{}, tags: []string{ "Air Traffic Control", "Emergency ", "Fire Dispatch", "Fire Tac", "Fire Talk", "Interop", "Security", "Service", "Untagged", }, }