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 ¶
- func NewClientToServer(client networkservice.NetworkServiceClient) networkservice.NetworkServiceServer
- func NewMonitorClientToServer(client networkservice.MonitorConnectionClient) networkservice.MonitorConnectionServer
- func NewMonitorServerToClient(server networkservice.MonitorConnectionServer) networkservice.MonitorConnectionClient
- func NewServerToClient(server networkservice.NetworkServiceServer) networkservice.NetworkServiceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientToServer ¶
func NewClientToServer(client networkservice.NetworkServiceClient) networkservice.NetworkServiceServer
NewClientToServer - returns a networkservice.NetworkServiceServer wrapped around the supplied client
func NewMonitorClientToServer ¶
func NewMonitorClientToServer(client networkservice.MonitorConnectionClient) networkservice.MonitorConnectionServer
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 ¶
func NewMonitorServerToClient(server networkservice.MonitorConnectionServer) networkservice.MonitorConnectionClient
NewMonitorServerToClient - returns a MonitorConnectionClient that is a wrapper around the MonitorConnectionServer
events sent to the MonitorConnectionServer are received byt the MonitorConnectionClient
func NewServerToClient ¶
func NewServerToClient(server networkservice.NetworkServiceServer) networkservice.NetworkServiceClient
NewServerToClient - returns a new networkservice.NetworkServiceClient that is a wrapper around server
Types ¶
This section is empty.