Documentation
¶
Index ¶
- type ModulePlugin
- type ModuleProvider
- type ModuleRPC
- type ModuleRPCServer
- func (s *ModuleRPCServer) GetComponentFile(args PathArgs, response *[]byte) error
- func (s *ModuleRPCServer) GetComponents(_ interface{}, response *[]modules.Component) error
- func (s *ModuleRPCServer) GetName(_ interface{}, response *string) error
- func (s *ModuleRPCServer) GetVersion(_ interface{}, response *modules.Version) error
- func (s *ModuleRPCServer) TickFunction(_ interface{}, response *[]PluginMessage) error
- type PathArgs
- type PluginMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModulePlugin ¶
type ModulePlugin struct {
Impl ModuleProvider
}
ModulePlugin is a representation of a plugin
type ModuleProvider ¶
type ModuleProvider interface {
GetName() string
GetVersion() modules.Version
TickFunction() []PluginMessage
GetComponents() []modules.Component
GetComponentFile(path string) []byte
}
ModuleProvider serves as the interface plugins need to implement to be used as a module in Excubitor.
type ModuleRPC ¶
type ModuleRPC struct {
// contains filtered or unexported fields
}
ModuleRPC is the client of the plugin connection. Its methods are run in the main program to call the respective methods on the plugin side.
func (*ModuleRPC) GetComponentFile ¶
func (*ModuleRPC) GetComponents ¶
func (*ModuleRPC) GetVersion ¶
func (*ModuleRPC) TickFunction ¶
func (rpc *ModuleRPC) TickFunction() []PluginMessage
type ModuleRPCServer ¶
type ModuleRPCServer struct {
Impl ModuleProvider
}
ModuleRPCServer is the server of the plugin connection. Its methods are run on the plugin side and called through ModuleRPC in the main program.
func (*ModuleRPCServer) GetComponentFile ¶
func (s *ModuleRPCServer) GetComponentFile(args PathArgs, response *[]byte) error
func (*ModuleRPCServer) GetComponents ¶
func (s *ModuleRPCServer) GetComponents(_ interface{}, response *[]modules.Component) error
func (*ModuleRPCServer) GetName ¶
func (s *ModuleRPCServer) GetName(_ interface{}, response *string) error
func (*ModuleRPCServer) GetVersion ¶
func (s *ModuleRPCServer) GetVersion(_ interface{}, response *modules.Version) error
func (*ModuleRPCServer) TickFunction ¶
func (s *ModuleRPCServer) TickFunction(_ interface{}, response *[]PluginMessage) error
type PathArgs ¶
type PathArgs struct {
Path string
}
PathArgs serves as argument for the GetComponentFile method in the RPC Server
type PluginMessage ¶
PluginMessage is a model of a message a plugin may send to the main application when ticked.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.