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
Click to show internal directories.
Click to hide internal directories.