| 58 | } |
| 59 | |
| 60 | class SystemCheckConnHandler extends ConnectionHandler { |
| 61 | id: string; |
| 62 | |
| 63 | async prepare() { |
| 64 | this.checkPriv(PRIV.PRIV_EDIT_SYSTEM); |
| 65 | await this.check(); |
| 66 | } |
| 67 | |
| 68 | async check() { |
| 69 | const log = (payload: any) => this.send({ type: 'log', payload }); |
| 70 | const warn = (payload: any) => this.send({ type: 'warn', payload }); |
| 71 | const error = (payload: any) => this.send({ type: 'error', payload }); |
| 72 | await this.ctx.check.run(this, log, warn, error, (id) => { this.id = id; }); |
| 73 | } |
| 74 | |
| 75 | async cleanup() { |
| 76 | this.ctx.check.cancel(this.id); |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | class SystemDashboardHandler extends SystemHandler { |
| 81 | async get() { |
nothing calls this directly
no outgoing calls
no test coverage detected