InstrumentedService is an implementation of Service for which all interface methods can be instrumented both return value as well as event hook wise.
| 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. |
| 34 | type 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 | |
| 45 | func NewInstrumentedService(*ServiceContext) (Service, error) { return new(InstrumentedService), nil } |
| 46 |
nothing calls this directly
no outgoing calls
no test coverage detected