Documentation ¶
Overview ¶
This script will generate a helper func for generating connection options. This func is used by the CLI to avoid having to write out a switch manually.
This script will generate a helper func for generating connection options. This func is used by the CLI to avoid having to write out a switch manually.
This script will generate a helper func for generating connection options. This func is used by the CLI to avoid having to write out a switch manually.
Code generated via protoc creates private interfaces for oneoff's. Because there is no public interface, you must rely on verbose type switching if you need to do dynamically instantiate things.
This script is intended to be ran after protoc code generation. It will:
Search through all *.pb.go files for private interfaces that start with is*
If a private interface is found, it will write a "extra.pb.go" file in the pkg directory that will contain a _public_ type alias for the private interface.