http

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTP

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

func New

func New(config *cfg.Config, daemon *goforever.Process) *HTTP

func (*HTTP) AuthHandler

func (h *HTTP) AuthHandler(fn func(http.ResponseWriter, *http.Request)) http.HandlerFunc

func (*HTTP) DeleteHandler

func (h *HTTP) DeleteHandler(w http.ResponseWriter, r *http.Request)

func (*HTTP) GetHandler

func (h *HTTP) GetHandler(w http.ResponseWriter, r *http.Request)

func (*HTTP) Handler

func (h *HTTP) Handler(w http.ResponseWriter, r *http.Request)

func (*HTTP) HttpServer

func (h *HTTP) HttpServer()

func (*HTTP) PostHandler

func (h *HTTP) PostHandler(w http.ResponseWriter, r *http.Request)

func (*HTTP) PutHandler

func (h *HTTP) PutHandler(w http.ResponseWriter, r *http.Request)

type ProcessInfo added in v0.2.0

type ProcessInfo struct {
	*goforever.Process
	Pid    int
	Status string
}

func NewProcessInfo added in v0.2.0

func NewProcessInfo(p *goforever.Process) ProcessInfo

func (ProcessInfo) String added in v0.2.0

func (p ProcessInfo) String() string

Jump to

Keyboard shortcuts

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