logs

package
v0.4.13-beta.12 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package logs provides concrete implementations for log streaming functionality. It handles tailing log files and streaming them via WebSocket to Base.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler implements the LogStreamer interface.

func NewHandler

func NewHandler(logger *shared.Logger) *Handler

NewHandler creates a new log stream handler.

func (*Handler) StreamLogs

func (h *Handler) StreamLogs(ctx context.Context, opts logs.StreamOptions, sendChunk func(chunk logs.LogChunk) error) error

StreamLogs streams logs based on the provided options. Duration controls behavior: "live" = tail from now, time duration = read history then tail.

Jump to

Keyboard shortcuts

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