MCPcopy Index your code
hub / github.com/akutz/memconn

github.com/akutz/memconn @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
126 symbols 399 edges 10 files 56 documented · 44% 17 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MemConn GoDoc Build Status Go Report Card

MemConn provides named, in-memory network connections for Go.

Create a Server

A new net.Listener used to serve HTTP, gRPC, etc. is created with memconn.Listen:

lis, err := memconn.Listen("memu", "UniqueName")

Creating a Client (Dial)

Clients can dial any named connection:

client, err := memconn.Dial("memu", "UniqueName")

Network Types

MemCon supports the following network types:

Network Description
memb A buffered, in-memory implementation of net.Conn
memu An unbuffered, in-memory implementation of net.Conn

Performance

The benchmark results illustrate MemConn's performance versus TCP and UNIX domain sockets:

ops ns/op B/op allocs/op

MemConn is more performant than TCP and UNIX domain sockets with respect to the CPU. While MemConn does allocate more memory, this is to be expected since MemConn is an in-memory implementation of the net.Conn interface.

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Fatal
called by 23
memconn_test.go
Fatalf
called by 18
memconn_test.go
Close
called by 15
memconn_pipe.go
isClosedChan
called by 13
memconn_pipe.go
Buffered
called by 12
memconn_addr.go
Dial
called by 10
memconn_provider.go
Network
called by 10
memconn_addr.go
Addr
called by 8
memconn_listener.go

Shape

Method 57
Function 56
Struct 12
Interface 1

Languages

Go100%

Modules by API surface

memconn_test.go24 symbols
memconn_pipe.go24 symbols
memconn_conn.go21 symbols
memconn_tls_test.go17 symbols
memconn_provider.go11 symbols
memconn_bench_test.go10 symbols
memconn.go7 symbols
memconn_listener.go6 symbols
memconn_addr.go4 symbols
memconn_examples_test.go2 symbols

For agents

$ claude mcp add memconn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page