server

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package server implements OpenAPI compliant HTTP proxy server for lumitree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithStaticFS added in v1.9.0

func WithStaticFS(fsys fs.FS) func(*Server)

WithStaticFS sets the filesystem used to serve the web UI at GET /. Pass the embedded web/ directory. If nil, the UI route is disabled.

Types

type Server

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

Server is the HTTP server for lumitree proxy.

func NewServer

func NewServer(cfg *config.Config, client *timetree.Client, logger *slog.Logger, opts ...func(*Server)) *Server

NewServer creates a new configured HTTP Server.

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler returns the HTTP handler with middleware.

Jump to

Keyboard shortcuts

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