adapters

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2021 License: Apache-2.0 Imports: 7 Imported by: 4

README

Intro

This package provides adapters to translate between NetworkServiceServer and NetworkServiceClient interfaces.

Benchmarks

Benchmark ns/op allocs/op
BenchmarkServerToClient_Request 288 6
BenchmarkClientToServer_Request 291 6
BenchmarkNested20Adapters_Request 6159 120

Documentation

Overview

Package adapters provides adapters to translate between networkservice.NetworkService{Server,Client}

Package adapters provides adapters to translate between networkservice.NetworkService{Server,Client}

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientToServer

NewClientToServer - returns a networkservice.NetworkServiceServer wrapped around the supplied client

func NewMonitorClientToServer

NewMonitorClientToServer - returns a MonitorConnectionServer that is wrapped around the provided MonitorConnectionClient

events that are received by the MonitorConnectionClient are sent to the MonitorConnectionServer

func NewMonitorServerToClient

NewMonitorServerToClient - returns a MonitorConnectionClient that is a wrapper around the MonitorConnectionServer

events sent to the MonitorConnectionServer are received byt the MonitorConnectionClient

func NewServerToClient

NewServerToClient - returns a new networkservice.NetworkServiceClient that is a wrapper around server

Types

This section is empty.

Jump to

Keyboard shortcuts

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