notify

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package notify contains the distributed notify node: it atomically increments a durable release signal shared with wait nodes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Signal           string      `json:"signal"`
	CacheKeys        string      `json:"cacheKeys"`
	SignalTTLSeconds interface{} `json:"signalTTLSeconds"`
}

Config holds the notify node configuration.

type Node

type Node struct {
	*nodebase.BaseNode
	// contains filtered or unexported fields
}

Node increments distributed release signals.

func NewNode

func NewNode(node nodestore.NodeInterface, cfg *Config, host nodebase.NodeHost) *Node

NewNode creates a notify node.

func (*Node) Execute

Execute evaluates the signal template, copies the configured metadata keys into the signal cache, and atomically increments the durable signal.

func (*Node) Validate

func (n *Node) Validate() error

Validate fails deployment early when the host offers no durable coordination store. There is deliberately no in-memory fallback.

Jump to

Keyboard shortcuts

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