MCPcopy Index your code
hub / github.com/foxcpp/maddy / UnixSockPipe

Struct UnixSockPipe

internal/updatepipe/unix_pipe.go:46–52  ·  view source on GitHub ↗

UnixSockPipe implements the UpdatePipe interface by serializating updates to/from a Unix domain socket. Due to the way Unix sockets work, only one Listen goroutine can be running. The socket is stream-oriented and consists of the following messages: SENDER_ID;JSON_SERIALIZED_INTERNAL_OBJECT\n An

Source from the content-addressed store, hash-verified

44// The SockPath field specifies the socket path to use. The actual socket
45// is initialized on the first call to Listen or (Init)Push.
46type UnixSockPipe struct {
47 SockPath string
48 Log *log.Logger
49
50 listener net.Listener
51 sender net.Conn
52}
53
54var _ P = &UnixSockPipe{}
55

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected