Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TimeoutConfig ¶
type TimeoutConfig struct { WorkerTimeoutDuration time.Duration WorkerTimeoutGracefulDuration time.Duration WorkerHeartbeatInterval time.Duration WorkerReportStatusInterval time.Duration MasterHeartbeatCheckLoopInterval time.Duration CloseWorkerTimeout time.Duration }
TimeoutConfig defines timeout related config used in master-worker framework
func DefaultTimeoutConfig ¶
func DefaultTimeoutConfig() TimeoutConfig
DefaultTimeoutConfig returns a default timeout config
func (TimeoutConfig) Adjust ¶
func (config TimeoutConfig) Adjust() TimeoutConfig
Adjust validates the TimeoutConfig and adjusts it
Click to show internal directories.
Click to hide internal directories.