properties

package
v1.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package properties - define a set of connection and healing properties

Index

Constants

View Source
const (
	// NsmdHealEnabled - environment variable name - disable heal and closes connection
	NsmdHealEnabled = "NSMD_HEAL_ENABLED" // Does healing is enabled or not
	// NsmdHealDSTWaitTimeout - environment variable name - timeout of waiting for networkservice when healing connection
	NsmdHealDSTWaitTimeout = "NSMD_HEAL_DST_TIMEOUTs" // Wait timeout for DST in seconds
	// NsmdHealRetryCount - amount of times healing will retry
	NsmdHealRetryCount = "NSMD_HEAL_RETRY_COUNT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Properties

type Properties struct {
	HealTimeout                    time.Duration
	CloseTimeout                   time.Duration
	HealRequestTimeout             time.Duration
	HealRequestConnectTimeout      time.Duration
	HealRetryCount                 int
	HealRetryDelay                 time.Duration
	HealRequestConnectCheckTimeout time.Duration
	HealForwarderTimeout           time.Duration

	// Total DST heal timeout is 20 seconds.
	HealDSTNSEWaitTimeout time.Duration
	HealDSTNSEWaitTick    time.Duration

	HealEnabled bool
}

Properties - holds properties of NSM connection events processing

func NewNsmProperties

func NewNsmProperties() *Properties

NewNsmProperties creates NsmProperties with defined default values and reading values from environment variables

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL