Documentation ¶
Overview ¶
Package heal provides a client chain element that can be used to enable fast heal of Connections if something goes wrong with the current Connection (as detected by monitor). Do not use heal client chain element in a passthrough NSE
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(chainCtx context.Context, opts ...Option) networkservice.NetworkServiceClient
NewClient - returns a new heal client chain element
Types ¶
type LivenessCheck ¶ added in v1.4.0
type LivenessCheck func(deadlineCtx context.Context, conn *networkservice.Connection) bool
LivenessCheck - function that returns true of conn is 'live' and false otherwise
type Option ¶
type Option func(o *options)
Option - option for heal.NewClient() chain element
func WithLivenessCheck ¶ added in v1.4.0
func WithLivenessCheck(livenessCheck LivenessCheck) Option
WithLivenessCheck - sets the data plane liveness checker
func WithLivenessCheckInterval ¶ added in v1.4.0
WithLivenessCheckInterval - sets livenessCheckInterval
func WithLivenessCheckTimeout ¶ added in v1.4.0
WithLivenessCheckTimeout - sets livenessCheckTimeout
Click to show internal directories.
Click to hide internal directories.