heal

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

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

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

func WithLivenessCheck(livenessCheck LivenessCheck) Option

WithLivenessCheck - sets the data plane liveness checker

func WithLivenessCheckInterval

func WithLivenessCheckInterval(livenessCheckInterval time.Duration) Option

WithLivenessCheckInterval - sets livenessCheckInterval

func WithLivenessCheckTimeout

func WithLivenessCheckTimeout(livenessCheckTimeout time.Duration) Option

WithLivenessCheckTimeout - sets livenessCheckTimeout

Jump to

Keyboard shortcuts

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