heal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: Apache-2.0 Imports: 14 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 LivelinessCheck added in v1.1.0

type LivelinessCheck func(conn *networkservice.Connection) bool

LivelinessCheck - function that returns true of conn is 'live' and false otherwise

type Option

type Option func(o *option)

Option - option for heal.NewClient() chain element

func WithLivelinessCheck added in v1.1.0

func WithLivelinessCheck(livelinessCheck LivelinessCheck) Option

WithLivelinessCheck - sets the LivelinessCheck for the heal chain elemeent

Jump to

Keyboard shortcuts

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