logs

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(func(cfg *config.Config, logger *logging.Logger) *Service {
		return NewService(cfg.StackLocation, logger)
	}),
	fx.Provide(NewHandler),
)

Functions

This section is empty.

Types

type Handler

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

func NewHandler

func NewHandler(service *Service) *Handler

func (*Handler) GetContainerLogs

func (h *Handler) GetContainerLogs(c echo.Context) error

func (*Handler) GetStackLogs

func (h *Handler) GetStackLogs(c echo.Context) error

type LogEntry

type LogEntry struct {
	Timestamp time.Time `json:"timestamp"`
	Message   string    `json:"message"`
	Source    string    `json:"source"`
	Level     string    `json:"level,omitempty"`
}

type LogRequest

type LogRequest struct {
	StackName     string
	ContainerName string
	Tail          int
	Since         string
	Timestamps    bool
}

type LogsResponse

type LogsResponse struct {
	Logs []LogEntry `json:"logs"`
}

type Service

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

func NewService

func NewService(stackLocation string, logger *logging.Logger) *Service

func (*Service) GetContainerLogs

func (s *Service) GetContainerLogs(ctx context.Context, req LogRequest) ([]LogEntry, error)

func (*Service) GetStackLogs

func (s *Service) GetStackLogs(ctx context.Context, req LogRequest) ([]LogEntry, error)

Jump to

Keyboard shortcuts

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