server

package
v0.0.0-...-7ff6432 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg Config) http.Handler

Types

type Config

type Config struct {
	Inputs []string
	Limit  int
	Assets fs.FS // static frontend assets (already rooted, no "web/" prefix)
}

type Sample

type Sample struct {
	Filename string   `json:"filename"`
	Lines    []string `json:"lines"`
}

Sample is the first few lines of an input file, shipped to the client so it can drive the FS picker / field labeller helpers.

type Server

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

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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