Documentation
¶
Index ¶
Constants ¶
View Source
const PluginName = "plugin"
PluginName is the name for the plugin as found inside the container
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Actionable ¶
type Actionable interface { // Action is purely an example of an interface available to Endure Action() error }
Actionable is an interface that can be used in additional plugins via endure container
type Config ¶
type Config struct {
Value string `mapstructure:"value"`
}
Config configures the plugin service.
type Payload ¶
type Payload struct {
Message string `json:"message"`
}
Payload for the message rpc call
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is the structure that will be initiated as per endure.Container interface
func (*Plugin) Init ¶
Init initiates the plugin with any injected services implementing endure.Container, returning an error if the plugin fails to start, if the error is of type errors.Disabled then the plugin will not be active
Click to show internal directories.
Click to hide internal directories.