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

noop

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: 6 Imported by: 0

Documentation

Overview

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

"noop" service — validates the pkg/services framework end-to-end without bringing in any real service's dependencies. Used by `skywire svc run --config services.json` smoke tests and as the minimal example of how a service plugs into the registry.

Block shape:

{ "type": "noop", "name": "demo", "tick_seconds": 5 }

Behavior: logs "tick" every tick_seconds (default 30) until ctx cancels. tick_seconds <= 0 disables ticking — service still runs to completion when ctx cancels but produces no output.

Index

Constants

View Source
const Type = "noop"

Type is the registry key used in services.json.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Type        string `json:"type"`
	Name        string `json:"name,omitempty"`
	TickSeconds int    `json:"tick_seconds,omitempty"`
}

Config is the JSON shape of a noop block. Fields are deliberately minimal — this exists to validate the pipeline, not as a real service.

Jump to

Keyboard shortcuts

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