api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DevServer

type DevServer struct {
	Port      string
	Index     string
	StaticDir string
	WatchDir  string
	OnReload  func()

	IsStart bool
	// contains filtered or unexported fields
}

func (*DevServer) Connect

func (s *DevServer) Connect(w http.ResponseWriter, r *http.Request)

func (*DevServer) Error

func (s *DevServer) Error(w http.ResponseWriter, r *http.Request)

func (*DevServer) Reload

func (s *DevServer) Reload(w http.ResponseWriter, r *http.Request)

func (*DevServer) SendError

func (s *DevServer) SendError(message string)

func (*DevServer) SendReload

func (s *DevServer) SendReload()

func (*DevServer) Start added in v0.2.2

func (s *DevServer) Start() error

func (*DevServer) View added in v0.2.2

func (s *DevServer) View(w http.ResponseWriter, r *http.Request)

func (*DevServer) ViewDefault added in v0.3.0

func (s *DevServer) ViewDefault(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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