Documentation
¶
Overview ¶
Package visor pkg/services/visor/visor.go c2-vis-appsvc
skywire-visor as a pkg/services.Service. Lets `skywire svc run` host a visor alongside the deployment services (or alongside other visors) in one process. Useful for:
- laptop / single-host all-in-one demos
- CI e2e collapses where one visor can co-locate with the services container
- embedded / hackathon deployments where running multiple binaries is awkward
Block schema is `{ "type": "visor", "config_path": "..." }`. The visor's own JSON config is too large to comfortably embed inline in services.json (~200 lines of nested fields), so this wrapper only supports the file-path indirection. The standalone `skywire-visor` and `skywire visor` commands are unchanged.
Index ¶
Constants ¶
const Type = "visor"
Type is the registry key used in services.json blocks.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// ConfigPath is the path to the visor's own JSON config file.
// Required — the visor config is too large to embed inline.
ConfigPath string `json:"config_path"`
}
Config is the JSON shape of a visor block in services.json.
func ParseBlock ¶
ParseBlock decodes a services.json block into a Config.