MCPcopy
hub / github.com/lonng/nano / String

Method String

cluster/agent.go:227–229  ·  view source on GitHub ↗

String, implementation for Stringer interface

()

Source from the content-addressed store, hash-verified

225
226// String, implementation for Stringer interface
227func (a *agent) String() string {
228 return fmt.Sprintf("Remote=%s, LastTime=%d", a.conn.RemoteAddr().String(), atomic.LoadInt64(&a.lastAt))
229}
230
231func (a *agent) status() int32 {
232 return atomic.LoadInt32(&a.state)

Callers 15

ExtractHandlerMethod · 0.45
AfterInitMethod · 0.45
serveFunction · 0.45
NewWorldFunction · 0.45
runMasterFunction · 0.45
runGateFunction · 0.45
runChatFunction · 0.45
runMasterFunction · 0.45
runGateFunction · 0.45
runChatFunction · 0.45
initNodeMethod · 0.45
DelMemberMethod · 0.45

Calls 1

RemoteAddrMethod · 0.65

Tested by

no test coverage detected