Documentation ¶
Overview ¶
Package heal contains an implementation of LivenessChecker.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KernelLivenessCheck ¶
func KernelLivenessCheck(deadlineCtx context.Context, conn *networkservice.Connection) bool
KernelLivenessCheck is an implementation of heal.LivenessCheck
func KernelLivenessCheckWithOptions ¶ added in v1.10.0
func KernelLivenessCheckWithOptions(deadlineCtx context.Context, conn *networkservice.Connection, opts ...Option) bool
KernelLivenessCheckWithOptions is an implementation with options of heal.LivenessCheck. It sends ICMP ping and checks reply. Returns false if didn't get reply.
Types ¶
type Option ¶ added in v1.10.0
type Option func(o *options)
Option is an option pattern for LivelinessChecker
func WithPingerFactory ¶ added in v1.10.0
func WithPingerFactory(pf PingerFactory) Option
WithPingerFactory - sets any custom pinger factory
Click to show internal directories.
Click to hide internal directories.