httpd

package
v0.0.0-...-88699d0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BrowserTimeFormat = "2006-01-02T15:04:05"
)
View Source
var (
	//go:embed *.tmpl
	TemplateRoot embed.FS
)

Functions

This section is empty.

Types

type Server

type Server struct {
	Addr      string
	BuildsDir string
	Root      fs.FS // templates
	Static    fs.FS
	Config    niks.Config
	Offline   bool
}

func (*Server) Mux

func (s *Server) Mux() *http.ServeMux

func (*Server) Run

func (s *Server) Run() error

type WaitMsg

type WaitMsg struct {
	BuildID  string `json:"buildId"`
	ShortRev string `json:"shortRev"`
	Done     bool   `json:"done"`
	Success  bool   `json:"success"`
	Duration string `json:"duration"`
}

Jump to

Keyboard shortcuts

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