pub async fn initialize() -> Result<TcpListener, Error>
Expand description

Initialize the plugin, returning the TcpListener that the gRPC service should serve on.

The compiled plugin executable is run by Grafana’s backend and is expected to behave as a go-plugin. This function initializes the plugin by binding to an available IPv4 address and printing the address and protocol to stdout, which the go-plugin infrastructure requires.

See the guide on non-Go languages more details.