webhost

package
v0.0.0-...-e0c21b1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package webhost handles the logic of the webhosting panel

Package webhost handles the logic of the webhosting panel

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Directory    string
	Public       *public.Controller
	ServerLogger *file.Handler
}

func New

func New() Controller

New returns a new PrivateHost type.

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.

Jump to

Keyboard shortcuts

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