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
Click to show internal directories.
Click to hide internal directories.