supervisor

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Supervisor

type Supervisor struct {
	// contains filtered or unexported fields
}

Supervisor manages the lifecycle of a single Monitor, watching the config file for changes and adding/removing chats as needed.

func New

func New(configPath string, cfg *config.Config, ctx context.Context) *Supervisor

New creates a Supervisor.

func (*Supervisor) Run

func (s *Supervisor) Run() error

Run creates and starts the monitor, adds initial chats, then watches the config file for changes. Blocks until the parent context is cancelled.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL