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 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.
Click to show internal directories.
Click to hide internal directories.