webserv

package
Version: v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	STFS http.FileSystem
)

StatikFS Global Variable

Functions

func DeleteSnip

func DeleteSnip(c *fasthttp.RequestCtx)

DeleteSnip : Remove Snippet

func InitStatikFS

func InitStatikFS(stfs *http.FileSystem)

InitStatikFS : Extract assets from compiled go file

func ShowSnip

func ShowSnip(c *fasthttp.RequestCtx)

ShowSnip : Root Handler Function

func StartVerifyCAPT

func StartVerifyCAPT(c *fasthttp.RequestCtx)

StartVerifyCAPT : Accept Captcha Token and do SSV

func UserUploadParse

func UserUploadParse(c *fasthttp.RequestCtx)

UserUploadParse : Upload API Processing Function

Types

type ServStatusData

type ServStatusData struct {
	RunHealth        int  `json:"status"`
	CaptchaEnabled   bool `json:"captcha_enabled"`
	MaxExpireTime    int  `json:"max_expire"`
	FileCheckEnabled bool `json:"abuse_detection"`
}

ServStatusData : Json Serialize data about server config

Jump to

Keyboard shortcuts

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