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 ¶
func (InvalidateMenuCacheCommand) Type() string
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 ¶
func (h *InvalidateMenuCacheHandler) Execute(ctx context.Context, msg InvalidateMenuCacheCommand) error
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.
Click to show internal directories.
Click to hide internal directories.