api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(ctx context.Context, addr string, dockerLogSvc DockerLogService) http.Handler

NewHandler returns an http.Handler configured with the logs API endpoints. It sets up proper routing and integrates with the provided services.

Types

type DockerLogService

type DockerLogService interface {
	// GetContainerLogs returns a filtered log stream for the specified container.
	//
	// Returns *log.Error with code CONTAINER_NOT_FOUND if the container doesn't exist.
	GetContainerLogs(ctx context.Context, query log.Query) (io.ReadCloser, error)
}

DockerLogService defines the interface for retrieving container logs.

Jump to

Keyboard shortcuts

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