menuscmd

package
v0.60.8 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMenusModuleDisabled = errors.New("menus command: module disabled")

Functions

This section is empty.

Types

type FeatureGates

type FeatureGates struct {
	MenusEnabled func() bool
}

FeatureGates exposes the runtime toggle required by menu command handlers.

type InvalidateMenuCacheCommand

type InvalidateMenuCacheCommand struct{}

InvalidateMenuCacheCommand clears cached menu lookups to force regeneration.

func (InvalidateMenuCacheCommand) Type

Type implements command.Message.

func (InvalidateMenuCacheCommand) Validate

func (InvalidateMenuCacheCommand) Validate() error

Validate satisfies command.Message.

type InvalidateMenuCacheHandler

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

InvalidateMenuCacheHandler orchestrates menu cache invalidation.

func NewInvalidateMenuCacheHandler

func NewInvalidateMenuCacheHandler(service menus.Service, logger interfaces.Logger, gates FeatureGates, opts ...InvalidateMenuCacheOption) *InvalidateMenuCacheHandler

NewInvalidateMenuCacheHandler constructs a handler wired to the provided menu service.

func (*InvalidateMenuCacheHandler) Execute

Execute satisfies command.Commander[InvalidateMenuCacheCommand].

type InvalidateMenuCacheOption added in v0.3.0

type InvalidateMenuCacheOption func(*InvalidateMenuCacheHandler)

InvalidateMenuCacheOption customises the cache invalidation handler.

func InvalidateMenuCacheWithTimeout added in v0.3.0

func InvalidateMenuCacheWithTimeout(timeout time.Duration) InvalidateMenuCacheOption

InvalidateMenuCacheWithTimeout overrides the default execution timeout.

Jump to

Keyboard shortcuts

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