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

confbs

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 confbs pkg/services/confbs/confbs.go c2-vis-appsvc

config-bootstrapper as a pkg/services.Service, so a visor can run it under its own key.

Index

Constants

View Source
const Type = "config-bootstrapper"

Type is the registry key used in services.json blocks.

Variables

This section is empty.

Functions

func New

func New(cfg *Config, log *logging.Logger) services.Service

New builds a Service from an already-parsed Config.

Types

type Config

type Config struct {
	services.Common

	// ConfigPath is the file with the stun servers, setup nodes and
	// transport setup keys to serve. A missing file serves the defaults.
	ConfigPath string `json:"config_path,omitempty"`
	// Domain is the domain of the endpoints (default skywire.skycoin.com).
	Domain string             `json:"domain,omitempty"`
	Dmsg   cmdutil.DmsgConfig `json:"dmsg,omitempty"`
}

Config is the JSON configuration for config-bootstrapper.

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