Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pup/lib/core/plugin.ts>PluginImplementation

Universal process manager built in Deno
Go to Latest
class PluginImplementation
import { PluginImplementation } from "https://deno.land/x/pup@1.0.0-rc.8/lib/core/plugin.ts";

Every plugin should extend this Class

There are two types of signals

hooks, through the hook-function log LogEvent

Events, through this.pup.events.on(eventName, eventParams)

log LogEvent init Undefined watchdog Undefined process_status_changed ProcessStateChangedEvent process_scheduled ProcessScheduledEvent process_watch ProcessWatchEvent terminating Number (ms) ipc IpcValidatedMessage

Constructors

new
PluginImplementation(_pup: PluginApi, _config: PluginConfiguration)

Properties

meta: { name: string; version: string; api: string; repository: string; }

Methods

hook(_signal: string, _parameters: unknown): boolean