discover

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 3

Documentation

Overview

Package discover provides a NetworkServiceServer chain element that discovers possible NSEs that can provide the requested network service and add them to the context.Context where they can be retrieved by Candidates(ctx)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

NewServer - creates a new NetworkServiceServer that can discover possible candidates for providing a requested

Network Service and add it to the context.Context where it can be retrieved by Candidates(ctx)

func WithCandidates

func WithCandidates(parent context.Context, candidates []*registry.NetworkServiceEndpoint, service *registry.NetworkService) context.Context

WithCandidates -

Wraps 'parent' in a new Context that has the Candidates

Types

type NetworkServiceCandidates

type NetworkServiceCandidates struct {
	NetworkService *registry.NetworkService
	Endpoints      []*registry.NetworkServiceEndpoint
}

NetworkServiceCandidates contains candidates for network service

func Candidates

func Candidates(ctx context.Context) *NetworkServiceCandidates

Candidates -

Returns the Candidates

Jump to

Keyboard shortcuts

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