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

tps

package
v1.3.103 Latest Latest
Warning

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

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

Documentation

Overview

Package tps pkg/services/tps/tps.go c2-vis-appsvc

transport-setup as a pkg/services.Service. Listens on dmsg RPC for visors and exposes an HTTP API to manage transports remotely.

Like setup-node, the block can either embed config.Config inline or point at a file via ConfigPath. E2E uses the file path; small all-in-one deployments can embed inline.

Index

Constants

View Source
const Type = "transport-setup"

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

Variables

This section is empty.

Functions

func LoadFile

func LoadFile(path string) (*config.Config, error)

LoadFile reads a transport-setup config file.

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 {
	config.Config

	// ConfigPath, when non-empty, is the path to a JSON file
	// containing a config.Config. File wins over inline.
	ConfigPath string `json:"config_path,omitempty"`
	LogLevel   string `json:"log_level,omitempty"`
	Tag        string `json:"tag,omitempty"`
}

Config is the JSON configuration for transport-setup.

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