heal

package
v1.8.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 15 Imported by: 7

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

func WithLivenessCheckInterval(livenessCheckInterval time.Duration) Option

WithLivenessCheckInterval - sets livenessCheckInterval

func WithLivenessCheckTimeout added in v1.4.0

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