Flesh out GLoom

I have documented GLoom's new RPC, how a plugin developer might create a plugin, and more. I have also created GLoomI, the included management interface for GLoom and added a LICENSE.
This commit is contained in:
Zoe
2025-01-07 19:33:08 +00:00
parent 3d6c4c72a7
commit 98c0f45ca8
18 changed files with 763 additions and 77 deletions

View File

@@ -4,21 +4,17 @@ import "github.com/gofiber/fiber/v3"
type MyPlugin struct{}
func (p MyPlugin) Name() string {
return "my plugin"
}
func (p MyPlugin) Init() error {
func (p *MyPlugin) Init() error {
return nil
}
func (p MyPlugin) Domains() []string {
return []string{"myplugin.local"}
func (p *MyPlugin) Name() string {
return "MyPlugin"
}
func (p MyPlugin) RegisterRoutes(router fiber.Router) {
func (p *MyPlugin) RegisterRoutes(router fiber.Router) {
router.Get("/", func(c fiber.Ctx) error {
return c.SendString("Welcome to MyPlugin!")
return c.Status(fiber.StatusTeapot).SendString("Welcome to MyPlugin!")
})
router.Get("/hello", func(c fiber.Ctx) error {