substrate

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: BSD-3-Clause Imports: 62 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CPUCheckInterval = time.Second
)

Functions

func Package

func Package() config.ProtoCommandIface

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

TODO: Node shouldn't have to have all

func New

func New(ctx context.Context, cfg tauConfig.Config) (*Service, error)

TODO: close on error

func (*Service) AttachCounters added in v1.1.9

func (srv *Service) AttachCounters(counter substrate.CounterService)

func (*Service) Caps added in v1.3.0

func (srv *Service) Caps(projectID string) config.Caps

Caps returns the operator's caps for a project.

func (*Service) Close

func (srv *Service) Close() error

func (*Service) Context

func (n *Service) Context() context.Context

func (*Service) Counter

func (s *Service) Counter() iface.CounterService

func (*Service) Dev

func (srv *Service) Dev() bool

func (*Service) Http

func (s *Service) Http() http.Service

func (*Service) Migrator added in v1.2.0

func (srv *Service) Migrator() *migration.Migrator

Migrator exposes the node-local data migration for tests and ops: a pass can be re-run at any time and is idempotent.

func (*Service) Node

func (n *Service) Node() peer.Node

func (*Service) Orbitals

func (srv *Service) Orbitals() []vm.Plugin

TODO: Rename to Satellites

func (*Service) P2P

func (s *Service) P2P() p2pIface.Service

func (*Service) SmartOps

func (s *Service) SmartOps() iface.SmartOpsService

func (*Service) Tns

func (s *Service) Tns() tns.Client

func (*Service) Verbose

func (srv *Service) Verbose() bool

func (*Service) Vm

func (s *Service) Vm() vm.Service

Directories

Path Synopsis
components
p2p
Package migration moves node-local project data — per-instance kvdbs under /crdt/<hash> and locally-held storage file bytes — into hoarder-hosted instances and the hoarder stash, then scrubs the local copies.
Package migration moves node-local project data — per-instance kvdbs under /crdt/<hash> and locally-held storage file bytes — into hoarder-hosted instances and the hoarder stash, then scrubs the local copies.
tests

Jump to

Keyboard shortcuts

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