MCPcopy
hub / github.com/alibaba/MongoShake / Module

Interface Module

collector/write_controller.go:24–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24type Module interface {
25 IsRegistered() bool
26
27 /**
28 * Module install and initialize. return false on failed
29 * and only invocation on WriteController is preparing
30 */
31 Install() bool
32
33 /**
34 * Handle outstanding request message. and messages
35 * are passed one by one. Any changes of message in
36 * Handle() will be preserved and delivery to next
37 *
38 * @return tunnel's error code (<0) or ack value
39 *
40 */
41 Handle(message *tunnel.WMessage) int64
42}
43
44// the order of controller modules declared strictly
45// doesn't change the order

Callers 3

installModulesMethod · 0.65
installModulesMethod · 0.65
SendMethod · 0.65

Implementers 2

ChecksumCalculatormodules/checksum.go
Compressormodules/compress.go

Calls

no outgoing calls

Tested by

no test coverage detected