github.com/network-quality/goresponsiveness@v0.0.0-20240129151524-343954285090/constants/constants.go (about)

     1  /*
     2   * This file is part of Go Responsiveness.
     3   *
     4   * Go Responsiveness is free software: you can redistribute it and/or modify it under
     5   * the terms of the GNU General Public License as published by the Free Software Foundation,
     6   * either version 2 of the License, or (at your option) any later version.
     7   * Go Responsiveness is distributed in the hope that it will be useful, but WITHOUT ANY
     8   * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
     9   * PARTICULAR PURPOSE. See the GNU General Public License for more details.
    10   *
    11   * You should have received a copy of the GNU General Public License along
    12   * with Go Responsiveness. If not, see <https://www.gnu.org/licenses/>.
    13   */
    14  
    15  package constants
    16  
    17  import (
    18  	"time"
    19  
    20  	"github.com/network-quality/goresponsiveness/executor"
    21  )
    22  
    23  var (
    24  	// The initial number of load-generating connections when attempting to saturate the network.
    25  	StartingNumberOfLoadGeneratingConnections uint64 = 1
    26  	// The number of load-generating connections to add at each interval while attempting to
    27  	// saturate the network.
    28  	AdditiveNumberOfLoadGeneratingConnections uint64 = 1
    29  
    30  	// The amount of time that the client will cooldown if it is in debug mode.
    31  	CooldownPeriod time.Duration = 4 * time.Second
    32  
    33  	// The default amount of time that a test will take to calculate the RPM.
    34  	DefaultTestTime int = 20
    35  	// The default port number to which to connect on the config host.
    36  	DefaultPortNumber int = 4043
    37  	// The default determination of whether to run in debug mode.
    38  	DefaultDebug bool = false
    39  	// The default URL for the config host.
    40  	DefaultConfigHost string = "networkquality.example.com"
    41  	// The default determination of whether to verify server certificates
    42  	DefaultInsecureSkipVerify bool = true
    43  
    44  	DefaultL4SCongestionControlAlgorithm string = "prague"
    45  
    46  	// The default execution policy for running a test (serial)
    47  	DefaultTestExecutionPolicy = executor.Serial
    48  )
    49  
    50  type SpecParametersCliOptions struct {
    51  	Mad int
    52  	Id  int
    53  	Tmp uint
    54  	Sdt float64
    55  	Mnp int
    56  	Mps int
    57  	Ptc float64
    58  	P   int
    59  }
    60  
    61  var SpecParameterCliOptionsDefaults = SpecParametersCliOptions{Mad: 4, Id: 1, Tmp: 5, Sdt: 5.0, Mnp: 16, Mps: 100, Ptc: 0.05, P: 90}