Documentation
¶
Overview ¶
Package sn pkg/services/sn/sn.go c2-vis-appsvc
setup-node as a pkg/services.Service. Listens on dmsg port 36 for route-setup RPC requests; optionally builds a transport manager for the cascade-route-setup path that reaches visors over STCPR.
Block shape supports either inline router.SetupConfig fields or a `config_path` indirection (the existing per-service JSON file). E2E uses the file path; tighter "all-in-one" deployments can embed the config inline.
Index ¶
Constants ¶
const Type = "setup-node"
Type is the registry key used in services.json blocks.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
router.SetupConfig
// ConfigPath, when non-empty, is the path to a JSON file
// containing a router.SetupConfig. Read at Run() time; values
// from the file overwrite any inline equivalents. Mutually
// exclusive in spirit (inline config is the alternative).
ConfigPath string `json:"config_path,omitempty"`
MetricsAddr string `json:"metrics_addr,omitempty"`
PProfMode string `json:"pprof_mode,omitempty"`
PProfAddr string `json:"pprof_addr,omitempty"`
Tag string `json:"tag,omitempty"`
}
Config is the JSON configuration for setup-node. Embeds router.SetupConfig so callers can either set those fields inline in the block (small all-in-one deployments) or point at a file via ConfigPath (production / CI e2e — the file wins when set).
func ParseBlock ¶
ParseBlock decodes a services.json block into a Config.