server

package
v0.0.0-...-6d248b5 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebServer

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

WebServer Main server

func NewWebServer

NewWebServer Make new struct

func (*WebServer) IndexHandler

func (w *WebServer) IndexHandler(ctx *fasthttp.RequestCtx)

IndexHandler Index page handler

func (*WebServer) NotFoundHandler

func (w *WebServer) NotFoundHandler(ctx *fasthttp.RequestCtx)

NotFoundHandler Not found page handler

func (*WebServer) Start

func (w *WebServer) Start(ip string, port int) error

Start Web server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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