Help us shape the future of Go! Take the 2026 Go Developer Survey

pluginmain

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 27

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(pluginServer pluginsdk.PluginServer, serviceServers ...pluginsdk.ServiceServer)

Serve serves the plugin using the given plugin/service servers. It does not return. It is intended to be called from main(). For example:

func main() {
    plugin := new(Plugin)
    pluginmain.Serve(
         keymanagerv1.KeyManagerPluginServer(plugin),
         configv1.ConfigServiceServer(plugin),
    )
}

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL