plugin

package
v0.0.0-...-4accc28 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: MIT Imports: 5 Imported by: 0

README

Plugin

This directory contains the source code for a plugin that extends the functionality of the main application. The plugin is designed to be easily integrated and provides additional features that enhance user experience.

Features

  • Feature 1: Customizable add handling specific routes.
  • Feature 2: Improved performance http filter.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(opt configv1.Option, log *log.Helper) (configv1.Plugin, error)

func Register

func Register(name string, f Factory)

Types

type Factory

type Factory func(c configv1.Option, log *log.Helper) (configv1.Plugin, error)

type Registry

type Registry interface {
	// Register registers a plugin factory with the given name.
	Register(name string, factory Factory)
	// Create creates a plugin instance using the factory associated with the given name.
	Create(opt configv1.Option, log *log.Helper) (configv1.Plugin, error)
}

func NewRegistry

func NewRegistry() Registry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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