mirror of
https://git.sr.ht/~j-r/jitsilg
synced 2024-05-29 05:53:21 +02:00
44 lines
1.3 KiB
Go
44 lines
1.3 KiB
Go
/*
|
|
Copyright (C) 2021 j.r <j.r@jugendhacker.de>
|
|
|
|
jitsilg 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 <https://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
package models
|
|
|
|
type ConfigJS struct {
|
|
P2P P2P `mapstructure:"p2p"`
|
|
P2PStunServers []StunServer `mapstructure:"p2pStunServers"`
|
|
Hosts Hosts `mapstructure:"hosts"`
|
|
Analytics Analytics `mapstructure:"analytics"`
|
|
}
|
|
|
|
type P2P struct {
|
|
StunServers []StunServer `mapstructure:"stunServers"`
|
|
}
|
|
|
|
type StunServer struct {
|
|
Urls string `mapstructure:"urls"`
|
|
}
|
|
|
|
type Hosts struct {
|
|
Anonymousdomain string `mapstructure:"anonymousdomain"`
|
|
}
|
|
|
|
type Analytics struct {
|
|
GoogleTrackingID string `mapstructure:"googleAnalyticsTrackingId"`
|
|
AmplitudeKey string `mapstructure:"amplitudeAPPKey"`
|
|
ScriptURLs []string `mapstructure:"scriptURLs"`
|
|
}
|