startlog

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package startlog keeps a short, in-memory log of each space's most recent start: what the server did before the space's agent connected (preparing volumes, pulling the image, creating and starting the container) and why a start failed. The space's log window shows it while the space is starting, until the agent's own log stream takes over.

It is node-local and never persisted or gossiped: no database or wire format is involved.

Index

Constants

View Source
const (
	// Service is the service name shown against start-up log lines.
	Service = "knot"
)

Variables

This section is empty.

Functions

func Begin

func Begin(spaceId, format string, args ...any)

Begin starts a new start-up log for the space, discarding the previous one.

func Error

func Error(spaceId, format string, args ...any)

Error records why the space's start failed.

func Info

func Info(spaceId, format string, args ...any)

Info records a step of the space's start.

func Subscribe

func Subscribe(spaceId string) (history []*msg.LogMessage, lines <-chan *msg.LogMessage, cancel func())

Subscribe returns the space's start-up log so far and a channel carrying the lines added after it. Call cancel when done; it closes the channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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