Documentation ¶
Overview ¶
Package gpaccount handles the logic of the gPanel account server
Package gpaccount handles the logic of the gPanel account server ¶
Package gpaccount handles the logic of the gPanel account server ¶
Package gpaccount handles the logic of the gPanel account server
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { Directory string DocumentRoot string Name string Port int Public *public.Controller GracefulShutdownTimeout time.Duration Status int AccountLogger *log.Logger APILogger *log.Logger Server http.Server }
func New ¶
func New(dir, name string, accPort, pubPort int) (*Controller, error)
New returns a new Controller reference.
func (*Controller) ServeHTTP ¶
func (con *Controller) ServeHTTP(res http.ResponseWriter, req *http.Request)
ServeHTTP function routes all requests for the private webhost server. It is used in the main function inside of the http.ListenAndServe() function for the private webhost host.
func (*Controller) Start ¶
func (con *Controller) Start() error
func (*Controller) Stop ¶
func (con *Controller) Stop(graceful bool) error
Click to show internal directories.
Click to hide internal directories.