next

package
v1.12.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 98

Documentation

Overview

Package next provides a mechanism for chained networkservice.NetworkService{Server,Client}s to call the next element in the chain.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

Client -

Returns the Client networkservice.NetworkServiceClient to be called in the chain from the context.Context

func NewNetworkServiceClient

func NewNetworkServiceClient(clients ...networkservice.NetworkServiceClient) networkservice.NetworkServiceClient

NewNetworkServiceClient - chains together clients into a single networkservice.NetworkServiceClient

func NewNetworkServiceServer

func NewNetworkServiceServer(servers ...networkservice.NetworkServiceServer) networkservice.NetworkServiceServer

NewNetworkServiceServer - chains together servers while providing them with the correct next.Server(ctx) to call to invoke the next element in the chain.

func NewWrappedNetworkServiceClient

func NewWrappedNetworkServiceClient(wrapper ClientWrapper, clients ...networkservice.NetworkServiceClient) networkservice.NetworkServiceClient

NewWrappedNetworkServiceClient chains together clients with wrapper wrapped around each one

func NewWrappedNetworkServiceServer

func NewWrappedNetworkServiceServer(wrapper ServerWrapper, servers ...networkservice.NetworkServiceServer) networkservice.NetworkServiceServer

NewWrappedNetworkServiceServer - chains together the servers provides with the wrapper wrapped around each one in turn.

func Server

Server -

Returns the Server networkservice.NetworkServiceServer to be called in the chain from the context.Context

Types

type ClientChainer

ClientChainer - a function that chains together a list of networkservice.NetworkServiceClients

type ClientWrapper

ClientWrapper - a function that wraps around a networkservice.NetworkServiceClient

type ServerChainer

ServerChainer - A function that chains a list of networkservice.NetworkServiceServers together

type ServerWrapper

ServerWrapper - A function that wraps a networkservice.NetworkServiceServer

Directories

Path Synopsis
Package tests contains tests for package 'next'
Package tests contains tests for package 'next'

Jump to

Keyboard shortcuts

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