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

rf

package
v1.3.104-alpha1 Latest Latest
Warning

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

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

Documentation

Overview

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

route-finder as a pkg/services.Service.

Index

Constants

View Source
const Type = "route-finder"

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 {
	Path string `json:"-"`

	services.Common

	// Dmsg is the dmsg-related config block.
	Dmsg cmdutil.DmsgConfig `json:"dmsg,omitempty"`

	// ChartsAddr serves only the charts page over plain HTTP. Empty disables it.
	ChartsAddr string `json:"charts_addr,omitempty"`

	// DisableLandmarkRouting answers every route with the exhaustive search
	// instead of composing far pairs through hub nodes (see store.SetLandmarkRouting).
	DisableLandmarkRouting bool `json:"disable_landmark_routing,omitempty"`
}

Config is the JSON configuration for route-finder.

func LoadFile

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

LoadFile reads and strict-parses a Config from path.

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