config.go (1291B)
1 // This file is part of tdir, the Taler Directory implementation. 2 // Copyright (C) 2022 Martin Schanzenbach 3 // 4 // Taldir is free software: you can redistribute it and/or modify it 5 // under the terms of the GNU Affero General Public License as published 6 // by the Free Software Foundation, either version 3 of the License, 7 // or (at your option) any later version. 8 // 9 // Taldir is distributed in the hope that it will be useful, but 10 // WITHOUT ANY WARRANTY; without even the implied warranty of 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 // Affero General Public License for more details. 13 // 14 // You should have received a copy of the GNU Affero General Public License 15 // along with this program. If not, see <http://www.gnu.org/licenses/>. 16 // 17 // SPDX-License-Identifier: AGPL3.0-or-later 18 19 package taldir 20 21 import ( 22 "github.com/schanzen/taler-go/pkg/merchant" 23 "github.com/schanzen/taler-go/pkg/util" 24 ) 25 26 type TaldirConfig struct { 27 // The config to use 28 Ini util.TalerConfiguration 29 30 // The Taldir Version 31 Version string 32 33 // The Taldir data home location (usually $datadir/taldir) 34 Datahome string 35 36 // The database connection to use 37 Db *TaldirDatabase 38 39 // The merchant connection to use 40 Merchant merchant.Merchant 41 42 // The loglevel to use 43 Loglevel LogLevel 44 }