web

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAndListen

func CreateAndListen(dumpRequests bool) *fasthttp.Server

func Download

func Download(ctx *fasthttp.RequestCtx)

returns file if exists for given key,projectname,projectbranch

func GetInfo

func GetInfo(ctx *fasthttp.RequestCtx)

func IsAllowed

func IsAllowed(ctx *fasthttp.RequestCtx) (project, branch string, allowed bool)

func UploadNewFile

func UploadNewFile(ctx *fasthttp.RequestCtx)

uploads new file for project-branch to storage method: POST params:

	key
 project
 branch
 size -- original
 crc -- original crc32
 file -- new body
 crcb -- new body crc32

Types

This section is empty.

Jump to

Keyboard shortcuts

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