MCPcopy Create free account
hub / github.com/egonelbre/exp / ChannelBefore

Struct ChannelBefore

sync2/example/before.go:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6)
7
8type ChannelBefore struct {
9 mu sync.Mutex
10 clients map[string]io.ReadWriter
11}
12
13func (channel *ChannelBefore) Connect(name string, client io.ReadWriter) {
14 channel.mu.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected