mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03:00 
			
		
		
		
	more docs
This commit is contained in:
		
							parent
							
								
									de69860e9b
								
							
						
					
					
						commit
						1be8bbed1c
					
				
					 2 changed files with 8 additions and 9 deletions
				
			
		| 
						 | 
					@ -1,7 +1,8 @@
 | 
				
			||||||
package config
 | 
					package config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// I2PConfig is the configuration structure for i2p related configuration
 | 
				
			||||||
type I2PConfig struct {
 | 
					type I2PConfig struct {
 | 
				
			||||||
	Keyfile string
 | 
						Keyfile string // private key file or empty string for ephemeral keys
 | 
				
			||||||
	Addr    string
 | 
						Addr    string // address of i2p api connector
 | 
				
			||||||
	Enabled bool
 | 
						Enabled bool
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,11 +1,9 @@
 | 
				
			||||||
package config
 | 
					package config
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/**
 | 
					// TorConfig is the configuration structure for Tor Proxy related values
 | 
				
			||||||
*tor specific configuration
 | 
					 | 
				
			||||||
 */
 | 
					 | 
				
			||||||
type TorConfig struct {
 | 
					type TorConfig struct {
 | 
				
			||||||
	OnionKeyfile string
 | 
						OnionKeyfile string // hidden service private key for ADD_ONION (currently unimplemented)
 | 
				
			||||||
	SocksAddr    string
 | 
						SocksAddr    string // tor socks address
 | 
				
			||||||
	UseForAll    bool
 | 
						UseForAll    bool   // use tor proxy for all connections?
 | 
				
			||||||
	Enabled      bool
 | 
						Enabled      bool   // use tor at all ?
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue