MCPcopy Create free account
hub / github.com/cloudbase/garm / Start

Method Start

websocket/client.go:130–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128}
129
130func (c *Client) Start() error {
131 c.mux.Lock()
132 defer c.mux.Unlock()
133
134 c.running = true
135 c.send = make(chan []byte, clientSendBuffer)
136 c.done = make(chan struct{})
137
138 go c.runWatcher()
139 go c.clientReader()
140 go c.clientWriter()
141
142 return nil
143}
144
145func (c *Client) Write(msg []byte) (int, error) {
146 c.mux.Lock()

Callers 2

MetricsHandlerMethod · 0.95
WSHandlerMethod · 0.95

Calls 5

runWatcherMethod · 0.95
clientReaderMethod · 0.95
clientWriterMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected