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 ¶
func NewServer(nsClient registry.NetworkServiceRegistryClient, nseClient registry.NetworkServiceEndpointRegistryClient) networkservice.NetworkServiceServer
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
Click to show internal directories.
Click to hide internal directories.