add plugin hosts to seperate plugins from gloomi

This adds a plugin host that seperates plugins from the gloomi process,
allowing for plugins to be unloaded and loaded. This commit also has a
fair amount of other changes, nice to haves and bug fixes, some notable
changes are:
- Highly available reverse proxy from my Flux project
- Improved gloomi functionality
This commit is contained in:
Zoe
2025-05-14 19:31:58 -05:00
parent ad0e949070
commit b8f5bce66c
18 changed files with 852 additions and 239 deletions

View File

@@ -8,13 +8,9 @@ func (p *MyPlugin) Init() (*fiber.Config, error) {
return nil, nil
}
func (p *MyPlugin) Name() string {
return "MyPlugin"
}
func (p *MyPlugin) RegisterRoutes(router fiber.Router) {
router.Get("/", func(c fiber.Ctx) error {
return c.Status(fiber.StatusTeapot).SendString("Welcome to MyPlugin!")
return c.Status(fiber.StatusOK).SendString("Welcome to MyPlugin!")
})
router.Get("/hello", func(c fiber.Ctx) error {