plugin

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package plugin describes a RoadRunner plugin entry and how it renders into the generated container/plugins.go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolvePrefixCollisions

func ResolvePrefixCollisions(plugins []*Plugin)

ResolvePrefixCollisions gives every plugin a unique prefix by raising the salt until the candidate is free.

Types

type Plugin

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

func NewPlugin

func NewPlugin(moduleName, tag string) *Plugin

NewPlugin returns a Plugin whose import prefix is derived from moduleName alone.

func (*Plugin) Code

func (p *Plugin) Code() string

Code returns the `prefix.Plugin{}` registration expression for the generated plugins.go.

func (*Plugin) Imports

func (p *Plugin) Imports() string

Imports returns the `prefix "moduleName"` import line for the generated plugins.go.

func (*Plugin) ModuleName

func (p *Plugin) ModuleName() string

func (*Plugin) Prefix

func (p *Plugin) Prefix() string

Prefix returns the per-plugin import-name prefix used in the generated plugins.go.

func (*Plugin) RequireArg

func (p *Plugin) RequireArg() string

RequireArg returns "moduleName@tag" suitable for `go mod edit -require=...`.

func (*Plugin) Tag

func (p *Plugin) Tag() string

Jump to

Keyboard shortcuts

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