server

package
v0.0.0-...-1e9d39a Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

HTTP webserver with reverse proxy mode and ClamAV integration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(w http.ResponseWriter, r *http.Request)

Handler - HTTP handler

func Run

func Run(port string, destination string, rCode int, rContentType string, rBody string, clamBinary string)

Run webserver

Types

type ErrorResponse

type ErrorResponse struct {
	Code        int
	ContentType string
	Body        string
}

ErrorResponse will be returned if file contains a virus

Jump to

Keyboard shortcuts

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