null

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 8

Documentation

Overview

Package null provides simple networkservice chain elements that do nothing by call next and returns what comes back. This can be very useful in testing or writing os specific code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

NewClient - returns a new null client that does nothing but call next.Client(ctx).{Request/Close} and return the result

This is very useful in testing

func NewServer

NewServer - returns a new null NetworkServiceServer that does nothing but call next.Server(ctx).{Request/Close}

and return the response

Types

This section is empty.

Jump to

Keyboard shortcuts

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