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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user