serve

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ResponseLimit = 36
)

Variables

This section is empty.

Functions

func Serve

func Serve(fs FileSearcher)

Types

type FileSearcher

type FileSearcher interface {
	LibPattern() *regexp.Regexp
	DocsPattern() *regexp.Regexp
	LabelsPattern() *regexp.Regexp
	LinksPattern() *regexp.Regexp
	ExamplesPattern() *regexp.Regexp
	DescriptionPattern() *regexp.Regexp
	Collect() ([]filesearcher.File, map[string]filesearcher.File, error)
	CollectLinks() ([]filesearcher.File, error)
}

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