MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / syncContextPipe

Struct syncContextPipe

internal/sshserver/syncContextPipe.go:10–14  ·  view source on GitHub ↗

syncContextPipe is a pipe that is able to handle timeouts via contexts.

Source from the content-addressed store, hash-verified

8
9// syncContextPipe is a pipe that is able to handle timeouts via contexts.
10type syncContextPipe struct {
11 byteChannel chan byte
12 closed bool
13 lock *sync.Mutex
14}
15
16func (c *syncContextPipe) Write(data []byte) (int, error) {
17 return c.WriteCtx(context.Background(), data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected