logs

package
v0.4.7-beta.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 12 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. Supports both tail mode (follow new logs) and historical mode (read from offset).

Jump to

Keyboard shortcuts

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