opsfx

package
v1.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Gate

type Gate struct {
	// contains filtered or unexported fields
}

Gate serializes operational actions like reload, restart, and shutdown.

It is intentionally small: the goal is to make it easy to reason about mutual exclusion across managers.

func NewGate

func NewGate() *Gate

NewGate constructs a new Gate.

func (*Gate) WithLock

func (g *Gate) WithLock(fn func() error) error

WithLock executes fn while holding the gate lock.

It is used to ensure that operational actions like reload/restart do not overlap.

Jump to

Keyboard shortcuts

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