MCPcopy Create free account
hub / github.com/dan-v/lambda-nat-proxy / WriteShutdown

Function WriteShutdown

pkg/shared/control.go:44–46  ·  view source on GitHub ↗

WriteShutdown writes a shutdown message to the writer

(w io.Writer)

Source from the content-addressed store, hash-verified

42
43// WriteShutdown writes a shutdown message to the writer
44func WriteShutdown(w io.Writer) error {
45 return writeByte(w, OpShutdown)
46}
47
48// ReadControlMessage reads a control message from the reader
49func ReadControlMessage(r io.Reader) (opcode byte, nonce uint64, err error) {

Callers 2

sendShutdownSignalMethod · 0.92
TestShutdownMessageFunction · 0.85

Calls 1

writeByteFunction · 0.85

Tested by 1

TestShutdownMessageFunction · 0.68