gpaccount

package
v0.0.0-...-33ce711 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: MIT Imports: 23 Imported by: 0

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

Jump to

Keyboard shortcuts

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