github.com/terraform-linters/tflint-plugin-sdk@v0.22.0/plugin/internal/host2plugin/doc.go (about) 1 // Package host2plugin contains a gRPC server (plugin) and client (host). 2 // 3 // In the plugin system, this communication is the first thing that happens, 4 // and a plugin must use this package to provide a gRPC server. 5 // However, the detailed implementation is hidden in the tflint.RuleSet interface, 6 // and plugin developers usually don't need to be aware of gRPC server behavior. 7 // 8 // When the host initializes a gRPC client, go-plugin starts a gRPC server 9 // on the plugin side as another process. This package acts as a wrapper for go-plugin. 10 // Separately, the Check function initializes a new gRPC client for plugin-to-host 11 // communication. See the plugin2host package for details. 12 package host2plugin