onionscan/config/onionscan_config.go

16 lines
392 B
Go
Raw Normal View History

package config
type OnionscanConfig struct {
TorProxyAddress string
DirectoryDepth int
2016-06-05 18:54:01 +00:00
Fingerprint bool
}
2016-06-05 18:54:01 +00:00
func Configure(torProxyAddress string, directoryDepth int, fingerprint bool) *OnionscanConfig {
onionScan := new(OnionscanConfig)
onionScan.TorProxyAddress = torProxyAddress
onionScan.DirectoryDepth = directoryDepth
2016-06-05 18:54:01 +00:00
onionScan.Fingerprint = fingerprint
return onionScan
}