Help us shape the future of Go! Take the 2026 Go Developer Survey

visor

package
v1.3.104 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

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

View Source
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

func ParseBlock(raw []byte) (*Config, error)

ParseBlock decodes a services.json block into a Config.

Jump to

Keyboard shortcuts

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