1.4 KiB
1.4 KiB
api
Import: dappco.re/go/core/process/pkg/api
Files: 2
Types
ProcessProvider
struct
Service provider that wraps the go-process daemon registry and bundled UI entrypoint.
Exported fields:
- None.
Functions
Package Functions
func NewProvider(registry *process.Registry, hub *ws.Hub) *ProcessProvider: Returns aProcessProviderfor the supplied registry and WebSocket hub. Whenregistryisnil, it usesprocess.DefaultRegistry().func PIDAlive(pid int) bool: Returnsfalsefor non-positive PIDs and otherwise reports whetheros.FindProcess(pid)followed by signal0succeeds.
ProcessProvider Methods
func (p *ProcessProvider) Name() string: Returns"process".func (p *ProcessProvider) BasePath() string: Returns"/api/process".func (p *ProcessProvider) Element() provider.ElementSpec: Returns an element spec with tagcore-process-paneland source/assets/core-process.js.func (p *ProcessProvider) Channels() []string: Returnsprocess.daemon.started,process.daemon.stopped,process.daemon.health,process.started,process.output,process.exited, andprocess.killed.func (p *ProcessProvider) RegisterRoutes(rg *gin.RouterGroup): Registers the daemon list, daemon lookup, daemon stop, and daemon health routes.func (p *ProcessProvider) Describe() []api.RouteDescription: Returns static route descriptions for the registered daemon routes.