Documentation ¶
Index ¶
- func HandleServerPlugins(d *webrtc.DataChannel)
- func ModifyArgs(pluginName string, args []Plugin_arg, mode string)
- func ReloadPlugins()
- type NATS_PORT
- type Plugin
- func (p Plugin) Background(comms_port uint16) (uintptr, error)
- func (p Plugin) Init_client(comms_port uint16) (uintptr, error)
- func (p Plugin) Init_host(comms_port uint16) (uintptr, error)
- func (p Plugin) IsEnabled() bool
- func (p Plugin) PersistPlugin()
- func (p *Plugin) ReloadArgs()
- func (p *Plugin) Toogle()
- type Plugin_arg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleServerPlugins ¶
func HandleServerPlugins(d *webrtc.DataChannel)
func ModifyArgs ¶
func ModifyArgs(pluginName string, args []Plugin_arg, mode string)
ModifyArgs will modify the arguments of a plugin mode can be "init_client", "init_host" or "background"
Types ¶
type NATS_PORT ¶
type NATS_PORT struct {
// contains filtered or unexported fields
}
var MessagingPort NATS_PORT
type Plugin ¶
type Plugin struct { Name string `json:"name"` Path string `json:"path"` Init_client_args []Plugin_arg `json:"init_client_args"` Init_host_args []Plugin_arg `json:"init_host_args"` Background_args []Plugin_arg `json:"background_args"` Enabled bool `json:"enabled"` // contains filtered or unexported fields }
func GetPlugins ¶
func GetPlugins() []Plugin
func (Plugin) Background ¶
Background will get the input arguments from the struct populated by the json file and will return the result of the function
func (Plugin) Init_client ¶
Init client will get the input arguments from the struct populated by the json file and will return the result of the function
func (Plugin) Init_host ¶
Init server will get the input arguments from the struct populated by the json file and will return the result of the function
func (Plugin) PersistPlugin ¶
func (p Plugin) PersistPlugin()
func (*Plugin) ReloadArgs ¶
func (p *Plugin) ReloadArgs()
type Plugin_arg ¶
type Plugin_arg struct { Name string `json:"name"` Value any `json:"value"` ValueList []Plugin_arg `json:"value_list,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.