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.
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.
func Startup ¶
func Startup(cfg *config.C) (*StartupResult, error)
Startup initializes the database, ACL, rate limiter, and starts the relay server. It returns a StartupResult containing all initialized components.
Source Files
¶
- startup.go
Click to show internal directories.
Click to hide internal directories.