Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for httpTimeout (0.09 sec)

  1. internal/logger/config.go

    		httpTimeout, err := time.ParseDuration(httpTimeoutCfgVal)
    		if err != nil {
    			return cfg, err
    		}
    		if httpTimeout < time.Second {
    			return cfg, fmt.Errorf("minimum value allowed for http_timeout is '1s': %s", httpTimeout)
    		}
    
    		cfg.AuditWebhook[k] = http.Config{
    			HTTPTimeout: httpTimeout,
    			Enabled:     true,
    			Endpoint:    url,
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Sep 20 16:02:50 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  2. internal/logger/target/http/http.go

    	MaxRetry    int               `json:"maxRetry"`
    	RetryIntvl  time.Duration     `json:"retryInterval"`
    	Proxy       string            `json:"string"`
    	Transport   http.RoundTripper `json:"-"`
    	HTTPTimeout time.Duration     `json:"httpTimeout"`
    
    	// Custom logger
    	LogOnceIf func(ctx context.Context, err error, id string, errKind ...interface{}) `json:"-"`
    }
    
    // Target implements logger.Target and sends the json
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. internal/logger/help.go

    			Key:         RetryInterval,
    			Description: `sleep between each retries, allowed maximum value is '1m' e.g. '10s'`,
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         httpTimeout,
    			Description: `defines the maximum duration for each http request`,
    			Optional:    true,
    			Type:        "duration",
    		},
    		config.HelpKV{
    			Key:         config.Comment,
    			Description: config.DefaultComment,
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top