Documentation
¶
Overview ¶
Package relayapp wires and runs the relay proxy: the command line, the start, the reloads and the ordered stop. The main package of the binary only builds the signal context and calls Main.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
func Main( ctx context.Context, args []string, stdout, stderr io.Writer, lookupEnv func(string) (string, bool), build Build, ) int
Main runs the relay on the environment that lookupEnv reads (the process reads it only in main.go) until ctx is cancelled (SIGTERM, SIGINT) and returns the exit code. SIGHUP reloads the bootstrap file.