server

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Accepted

func Accepted(w http.ResponseWriter)

func BadRequest

func BadRequest(w http.ResponseWriter, error string)

func InternalError

func InternalError(w http.ResponseWriter)

func JSON

func JSON(w http.ResponseWriter, data interface{}) error

func NotModified

func NotModified(w http.ResponseWriter)

func RunServer

func RunServer() error

Types

type ApiHandler

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

func NewApiHandler

func NewApiHandler(client *container.Client) *ApiHandler

func (*ApiHandler) ListContainers

func (h *ApiHandler) ListContainers(w http.ResponseWriter, r *http.Request)

func (*ApiHandler) RefreshContainers

func (h *ApiHandler) RefreshContainers(w http.ResponseWriter, r *http.Request)

func (*ApiHandler) UpdateContainers

func (h *ApiHandler) UpdateContainers(w http.ResponseWriter, r *http.Request)

type HomeHandler

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

func NewHomeHandler

func NewHomeHandler(client *container.Client) *HomeHandler

func (*HomeHandler) Home

func (h *HomeHandler) Home(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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