Skip to content
Snippets Groups Projects
Select Git revision
  • ad66fa9410a5b2a37d9124de5f6a37988aace740
  • main default protected
  • tags/misc
  • tags/version-0.5r2
  • tags/version-0.6
  • tags/version-0.4
  • tags/version-0.5r1
  • tags/libxaal_v01
  • tags/generic-feedback-renderer_complexAPI
  • tags/testing-libsodium
  • tags/testing-nettle
  • tags/testing_ajax
  • tags/testing_clearsilver
  • tags/testing_jansson
  • tags/testing_jsmn
  • tags/testing_json-c
16 results

cache.c

Blame
  • parameters.go 1.02 KiB
    package main
    
    import (
    	flag "github.com/spf13/pflag"
    )
    
    const (
    	// CfgTargetNode defines the config flag of the target node.
    	CfgTargetNode = "relayChecker.targetNode"
    	// CfgTestNodes defines the config flag of the test nodes.
    	CfgTestNodes = "relayChecker.testNodes"
    	// CfgData defines the config flag of the data.
    	CfgData = "relayChecker.data"
    	// CfgCooldownTime defines the config flag of the cooldown time.
    	CfgCooldownTime = "relayChecker.cooldownTime"
    	// CfgRepeat defines the config flag of the repeat.
    	CfgRepeat = "relayChecker.repeat"
    )
    
    func init() {
    	flag.StringSlice(CfgTargetNode, []string{""}, "the list of nodes to check after the cooldown")
    	flag.String(CfgTestNodes, "http://127.0.0.1:8080", "the target node from the which message will be broadcasted from")
    	flag.String(CfgData, "TEST99BROADCAST99DATA", "data to broadcast")
    	flag.Int(CfgCooldownTime, 10, "the cooldown time after broadcasting the data on the specified target node")
    	flag.Int(CfgRepeat, 1, "the amount of times to repeat the relay-checker queries")
    }