upstreamrefresh

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Overview

Package upstreamrefresh provides a client chain element that receives monitor connectionEvents and processes those that have refresh_requested state

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 upstreamrefresh chain element

Types

type Notifier

type Notifier interface {
	Notify(ctx context.Context, initiatorID string)
}

Notifier - interface for local notifications sending

func LoadLocalNotifier

func LoadLocalNotifier(ctx context.Context, isClient bool) (value Notifier, ok bool)

LoadLocalNotifier loads Notifier stored in per Connection.Id metadata. The loaded result reports whether the key was present.

type Option

type Option func(o *options)

Option - option for upstreamrefresh chain element

func WithLocalNotifications

func WithLocalNotifications() Option

WithLocalNotifications - allows all connections to receive events, if at least one of them received an event from upstream.

Jump to

Keyboard shortcuts

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