Skip to content
Snippets Groups Projects
Select Git revision
  • 35a0c58c2f19d55069b1371e5f6e8aa847f52538
  • without_tipselection default
  • develop protected
  • fix/grafana-local-dashboard
  • wasp
  • fix/dashboard-explorer-freeze
  • master
  • feat/timerqueue
  • test/sync_debug_and_650
  • feat/sync_revamp_inv
  • wip/sync
  • tool/db-recovery
  • portcheck/fix
  • fix/synchronization
  • feat/new-dashboard-analysis
  • feat/refactored-analysis-dashboard
  • feat/new-analysis-dashboard
  • test/demo-prometheus-fpc
  • prometheus_metrics
  • wip/analysis-server
  • merge/fpc-test-value-transfer
  • v0.2.2
  • v0.2.1
  • v0.2.0
  • v0.1.3
  • v0.1.2
  • v0.1.1
  • v0.1.0
28 results

parameters.go

Blame
  • user avatar
    Angelo Capossele authored and GitHub committed
    Fixes linter warnings.
    35a0c58c
    History
    parameters.go 916 B
    package local
    
    import (
    	flag "github.com/spf13/pflag"
    )
    
    const (
    	// CfgBind defines the config flag of the network bind address.
    	CfgBind = "network.bindAddress"
    	// CfgExternal defines the config flag of the network external address.
    	CfgExternal = "network.externalAddress"
    	// CfgPort defines the config flag of the autopeering port.
    	CfgPort = "autopeering.port"
    	// CfgSeed defines the config flag of the autopeering private key seed.
    	CfgSeed = "autopeering.seed"
    )
    
    func init() {
    	flag.String(CfgBind, "0.0.0.0", "bind address for global services such as autopeering and gossip")
    	flag.String(CfgExternal, "auto", "external IP address under which the node is reachable; or 'auto' to determine it automatically")
    	flag.Int(CfgPort, 14626, "UDP port for incoming peering requests")
    	flag.BytesBase64(CfgSeed, nil, "private key seed used to derive the node identity; optional Base64 encoded 256-bit string")
    }