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 (*Plugin) Code ¶
Code returns the `prefix.Plugin{}` registration expression for the generated plugins.go.
func (*Plugin) Imports ¶
Imports returns the `prefix "moduleName"` import line for the generated plugins.go.
func (*Plugin) ModuleName ¶
func (*Plugin) Prefix ¶
Prefix returns the per-plugin import-name prefix used in the generated plugins.go.
func (*Plugin) RequireArg ¶
RequireArg returns "moduleName@tag" suitable for `go mod edit -require=...`.