witch

package
v0.0.0-...-f532095 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrServerError is internal server error.
	ErrServerError = errors.New("Internal Server Error")
	// ErrBadRequest is bad request error.
	ErrBadRequest = errors.New("Bad Request")
)

Functions

func Launch

func Launch()

Launch launch witch service

Types

type Server

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

Server is the system RESTFul web server.

func NewServer

func NewServer(addr string, sysControl *system.SysController, statsControl *system.StatsController, cfg *g.GlobalConfig) *Server

NewServer inits a system RESTful web server.

func (*Server) Start

func (ser *Server) Start() error

Start starts the server.

func (*Server) Stop

func (ser *Server) Stop()

Stop stops the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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