integration

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package integration provides simple Hockeypuck integration functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerAdapter

type LoggerAdapter struct {
	*log.Logger
}

LoggerAdapter adapts logrus.Logger to the plugin.Logger interface

func (*LoggerAdapter) Debug

func (l *LoggerAdapter) Debug(msg string, args ...interface{})

func (*LoggerAdapter) Error

func (l *LoggerAdapter) Error(msg string, args ...interface{})

func (*LoggerAdapter) Info

func (l *LoggerAdapter) Info(msg string, args ...interface{})

func (*LoggerAdapter) Warn

func (l *LoggerAdapter) Warn(msg string, args ...interface{})

type PluginSystem

type PluginSystem struct {
	// contains filtered or unexported fields
}

PluginSystem represents the complete plugin system

func InitializePlugins

func InitializePlugins(ctx context.Context, host pluginapi.PluginHost, settings *config.Settings) (*PluginSystem, error)

InitializePlugins initializes the plugin system with a single call from Hockeypuck

func (*PluginSystem) GetEventBus

func (ps *PluginSystem) GetEventBus() *events.EventBus

GetEventBus returns the event bus for external use

func (*PluginSystem) GetPlugin

func (ps *PluginSystem) GetPlugin(name string) (pluginapi.Plugin, bool)

GetPlugin returns a loaded plugin by name

func (*PluginSystem) ListPlugins

func (ps *PluginSystem) ListPlugins() []string

ListPlugins returns all loaded plugin names

func (*PluginSystem) Shutdown

func (ps *PluginSystem) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down all plugins

Jump to

Keyboard shortcuts

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