Documentation
¶
Overview ¶
Package jniservicebindconfig resolves Android jniservice listener settings from defaults, durable config, staged launch config, and process environment.
Example: Load keeps transient launcher overrides separate from its durable config file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config contains the jniservice listener host and port.
Example: Config{Listen: "127.0.0.1", Port: "50051"} represents the safe defaults.
func Load ¶
Load applies safe defaults, the selected config file, the optional staged launch config, and then nonempty listener environment overrides. Only missing files are optional; other read and parse errors stop startup so the service cannot silently bind to an unintended address.
Example: env["JNISERVICE_LAUNCH_CONFIG"] selects transient listener overrides for this launch.