Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MultipointCommunicatingPlugin ¶
type MultipointCommunicatingPlugin struct{}
MultipointCommunicatingPlugin is an example of a plugin that implements two extension points. It communicates through pluginContext with another function.
func NewMultipointCommunicatingPlugin ¶
func NewMultipointCommunicatingPlugin() *MultipointCommunicatingPlugin
NewMultipointCommunicatingPlugin initializes a new plugin and returns it.
func (MultipointCommunicatingPlugin) Name ¶
func (mc MultipointCommunicatingPlugin) Name() string
Name returns name of the plugin. It is used in logs, etc.
type StatefulMultipointExample ¶
type StatefulMultipointExample struct {
// contains filtered or unexported fields
}
StatefulMultipointExample is an example plugin that is executed at multiple extension points. This plugin is stateful. It receives arguments at initialization (NewMultipointPlugin) and changes its state when it is executed.
func NewStatefulMultipointExample ¶
func NewStatefulMultipointExample(initState ...interface{}) *StatefulMultipointExample
NewStatefulMultipointExample initializes a new plugin and returns it.
func (*StatefulMultipointExample) Name ¶
func (mp *StatefulMultipointExample) Name() string
Name returns name of the plugin. It is used in logs, etc.
type StatelessPrebindExample ¶
type StatelessPrebindExample struct{}
StatelessPrebindExample is an example of a simple plugin that has no state and implements only one hook for prebind.
func NewStatelessPrebindExample ¶
func NewStatelessPrebindExample() *StatelessPrebindExample
NewStatelessPrebindExample initializes a new plugin and returns it.
func (StatelessPrebindExample) Name ¶
func (sr StatelessPrebindExample) Name() string
Name returns name of the plugin. It is used in logs, etc.