example

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExamplePlugin

type ExamplePlugin struct{}

ExamplePlugin demonstrates the RapidGo plugin interface. It implements Plugin, RouteRegistrar, and CommandRegistrar.

func New

func New() *ExamplePlugin

New creates an ExamplePlugin.

func (*ExamplePlugin) Boot

func (p *ExamplePlugin) Boot(c *container.Container)

Boot runs after all providers and plugins have been registered.

func (*ExamplePlugin) Commands

func (p *ExamplePlugin) Commands() []*cobra.Command

Commands returns CLI commands provided by the plugin.

func (*ExamplePlugin) Name

func (p *ExamplePlugin) Name() string

Name returns the plugin's unique identifier.

func (*ExamplePlugin) Register

func (p *ExamplePlugin) Register(c *container.Container)

Register binds plugin services into the container.

func (*ExamplePlugin) RegisterRoutes

func (p *ExamplePlugin) RegisterRoutes(r *router.Router)

RegisterRoutes adds plugin routes to the router.

Jump to

Keyboard shortcuts

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