Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Run command hooks. OnConfigLoaded string = "onConfigLoaded" OnNewLogger string = "onNewLogger" OnNewPool string = "onNewPool" OnNewClient string = "onNewClient" OnNewProxy string = "onNewProxy" OnNewServer string = "onNewServer" OnSignal string = "onSignal" // Server hooks. OnRun string = "onRun" OnBooting string = "onBooting" OnBooted string = "onBooted" OnOpening string = "onOpening" OnOpened string = "onOpened" OnClosing string = "onClosing" OnClosed string = "onClosed" OnTraffic string = "onTraffic" OnShutdown string = "onShutdown" OnTick string = "onTick" // Proxy hooks. OnTrafficFromClient string = "onTrafficFromClient" OnTrafficToServer string = "onTrafficToServer" OnTrafficFromServer string = "onTrafficFromServer" OnTrafficToClient string = "onTrafficToClient" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Identifier ¶
type Plugin ¶
type Plugin struct { goplugin.NetRPCUnsupportedPlugin pluginV1.GatewayDPluginServiceServer Client *goplugin.Client ID Identifier Description string Authors []string License string ProjectURL string LocalPath string Args []string Env []string Enabled bool // internal and external config options Config map[string]string // hooks it attaches to Hooks []string Priority Priority // required plugins to be loaded before this one // Built-in plugins are always loaded first Requires []Identifier Tags []string Categories []string }
Click to show internal directories.
Click to hide internal directories.