Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Handshake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "FLEXMODULE_PLUGIN",
MagicCookieValue: "CHATANIUM_FOREVER",
}
Handshake is a common handshake that is shared by plugin and host.
View Source
var ModulePluginMap = map[string]plugin.Plugin{ "core-v1": &core_module.Plugin{}, "discord-v1": &discord_module.Plugin{}, }
ModulePluginMap is the map of plugins we can dispense.
View Source
var RuntimePluginMap = map[string]plugin.Plugin{ "core-v1": &core_runtime.Plugin{}, "discord-v1": &discord_runtime.Plugin{}, }
ModulePluginMap is the map of plugins for the runtime. This map is used at runtime, so it's not needed in the module implementation.
Functions ¶
func CreateRuntimePluginMap ¶
func CreateRuntimePluginMap(discordHelper discord_shared.Helper, voiceHelper *discord_runtime.VoiceHelper) map[string]plugin.Plugin
CreateRuntimePluginMap creates a runtime plugin map with the given Discord helper and voice helper
func ServeToRuntime ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package shared contains shared data between the host and plugins.
|
Package shared contains shared data between the host and plugins. |
Click to show internal directories.
Click to hide internal directories.