github.com/terraform-linters/tflint-plugin-sdk@v0.22.0/plugin/internal/plugin2host/doc.go (about)

     1  // Package plugin2host contains a gRPC server (host) and client (plugin).
     2  //
     3  // Communication from the plugin to the host is the second one that occurs.
     4  // To understand what happens first, see the host2plugin package first.
     5  // The gRPC client used by the plugin is implicitly initialized by the host2plugin
     6  // package and hidden in the tflint.Runner interface. Normally, plugin developers
     7  // do not need to be aware of the details of this client.
     8  //
     9  // The host starts a gRPC server as goroutine to respond from the plugin side
    10  // when calling Check function in host2plugin. Please note that the gRPC server
    11  // and client startup in plugin2host is not due to go-plugin.
    12  package plugin2host