MCPcopy Create free account
hub / github.com/CPChain/chain / InstrumentedService

Struct InstrumentedService

node/utils_test.go:34–43  ·  view source on GitHub ↗

InstrumentedService is an implementation of Service for which all interface methods can be instrumented both return value as well as event hook wise.

Source from the content-addressed store, hash-verified

32// InstrumentedService is an implementation of Service for which all interface
33// methods can be instrumented both return value as well as event hook wise.
34type InstrumentedService struct {
35 protocols []p2p.Protocol
36 apis []rpc.API
37 start error
38 stop error
39
40 protocolsHook func()
41 startHook func(*p2p.Server)
42 stopHook func()
43}
44
45func NewInstrumentedService(*ServiceContext) (Service, error) { return new(InstrumentedService), nil }
46

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected