Discover Packages
github.com/gravitational/gravity
lib
rpc
internal
inprocess
package
Version:
v0.0.0-...-3bfe646
Opens a new window with list of versions in this module.
Published: Jun 28, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package inprocess implements in-process network connections and
corresponding dialing/listening.
Pipe creates a synchronous, in-memory, full duplex
network connection; both ends implement the Conn interface.
Reads on one end are matched with writes on the other,
copying data directly between the two; there is no internal
buffering.
Listener is the inprocess network listener
Listen creates an in-process listener
Accept waits for and returns the next connection to the listener.
Addr returns the listener's network address.
Close closes the listener.
Any blocked Accept operations will be unblocked and return errors.
Dial creates a connection to this listener
ListenerInterface is the inprocess listener
Source Files
¶
Click to show internal directories.
Click to hide internal directories.