gatewayreload

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package gatewayreload asks a running gateway to reload its config, so a program that changed the config outside the launcher, such as compa-kernel, can have it applied without a restart.

Index

Constants

View Source
const Timeout = 30 * time.Second

Timeout bounds the wait for the gateway's /reload, which answers once the reload is done.

Variables

This section is empty.

Functions

func BaseURL

func BaseURL(pidData *ppid.PidFileData, cfg *config.Config) string

BaseURL is the address of the gateway pidData describes: its host and port, else the config's, else a loopback host and the default port.

func Reload

func Reload(ctx context.Context, home string, cfg *config.Config) (bool, error)

Reload asks the gateway the PID file in home describes to reload its config, the one cfg was read from, and waits until it has. It reports whether a gateway reloaded; no running gateway is false with no error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL