Documentation
¶
Overview ¶
Package relay provides shared startup logic for running the ORLY relay. This allows both the root binary and the unified binary to share the same initialization code for monolithic deployments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeDatabaseConfig ¶
func MakeDatabaseConfig(cfg *config.C) *database.DatabaseConfig
MakeDatabaseConfig creates a database.DatabaseConfig from the app config.
func RunWithSignals ¶
RunWithSignals calls Startup and blocks on signals, handling graceful shutdown. This is the main entry point for running the relay as a standalone process.
Types ¶
type StartupResult ¶
type StartupResult struct {
Ctx context.Context
Cancel context.CancelFunc
DB database.Database
Limiter *ratelimit.Limiter
Quit chan struct{}
}
StartupResult holds the initialized components from Startup.
Click to show internal directories.
Click to hide internal directories.