MCPcopy Create free account
hub / github.com/bytemode/pitaya-notes / NewAgent

Function NewAgent

agent/agent.go:98–137  ·  view source on GitHub ↗

NewAgent create new agent instance

(
	conn net.Conn,
	packetDecoder codec.PacketDecoder,
	packetEncoder codec.PacketEncoder,
	serializer serialize.Serializer,
	heartbeatTime time.Duration,
	messagesBufferSize int,
	dieChan chan bool,
	messageEncoder message.Encoder,
	metricsReporters []metrics.Reporter,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 5

NewFunction · 0.92
hbdEncodeFunction · 0.85
IsCompressionEnabledMethod · 0.65
GetNameMethod · 0.65