Documentation
¶
Index ¶
- type InMemoryPoll
- func (i *InMemoryPoll) Add(_ context.Context, p *plugins.Plugin) error
- func (i *InMemoryPoll) Plugin(_ context.Context, pluginID string) (*plugins.Plugin, bool)
- func (i *InMemoryPoll) Plugins(_ context.Context) []*plugins.Plugin
- func (i *InMemoryPoll) Remove(_ context.Context, pluginID string) error
- type Pool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryPoll ¶
type InMemoryPoll struct {
// contains filtered or unexported fields
}
InMemoryPoll save the plugin to memory.
type Pool ¶
type Pool interface { // Plugin finds a plugin by its ID. Plugin(ctx context.Context, id string) (*plugins.Plugin, bool) // Plugins returns all plugins. Plugins(ctx context.Context) []*plugins.Plugin // Add adds the provided plugin to the registry. Add(ctx context.Context, plugin *plugins.Plugin) error // Remove deletes the requested plugin from the registry. Remove(ctx context.Context, id string) error }
Pool is responsible for the internal storing and retrieval of plugins.
Click to show internal directories.
Click to hide internal directories.