onionscan/config/onionscan_config.go

16 lines
392 B
Go

package config
type OnionscanConfig struct {
TorProxyAddress string
DirectoryDepth int
Fingerprint bool
}
func Configure(torProxyAddress string, directoryDepth int, fingerprint bool) *OnionscanConfig {
onionScan := new(OnionscanConfig)
onionScan.TorProxyAddress = torProxyAddress
onionScan.DirectoryDepth = directoryDepth
onionScan.Fingerprint = fingerprint
return onionScan
}