MCPcopy
hub / github.com/nats-io/nats.go / readOp

Method readOp

nats.go:3109–3116  ·  view source on GitHub ↗

Read a control line and process the intended op.

(c *control)

Source from the content-addressed store, hash-verified

3107
3108// Read a control line and process the intended op.
3109func (nc *Conn) readOp(c *control) error {
3110 line, err := nc.readProto()
3111 if err != nil {
3112 return err
3113 }
3114 parseControl(line, c)
3115 return nil
3116}
3117
3118// Parse a control line from the server.
3119func parseControl(line string, c *control) {

Callers 1

processExpectedInfoMethod · 0.95

Calls 2

readProtoMethod · 0.95
parseControlFunction · 0.85

Tested by

no test coverage detected