memconn

MemConn is an in-memory network stack for Go.

  • 所有者: akutz/memconn
  • 平台:
  • 許可證: Apache License 2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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.

主要指標

概覽
名稱與所有者akutz/memconn
主編程語言Go
編程語言Go (語言數: 2)
平台
許可證Apache License 2.0
所有者活动
創建於2017-12-07 21:54:19
推送於2023-10-04 02:45:39
最后一次提交2021-11-10 17:36:53
發布數1
最新版本名稱v0.1.0 (發布於 2018-05-01 16:57:23)
第一版名稱v0.1.0 (發布於 2018-05-01 16:57:23)
用户参与
星數551
關注者數15
派生數35
提交數41
已啟用問題?
問題數4
打開的問題數3
拉請求數5
打開的拉請求數2
關閉的拉請求數2
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?