webserver

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: AGPL-3.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const ViewAPI = 2
View Source
const ViewLogs = 1
View Source
const ViewMain = 0

Variables

This section is empty.

Functions

func Shutdown

func Shutdown()

Shutdown closes the webserver gracefully

func Start

func Start()

Start the webserver on the port set in the config

Types

type DownloadView

type DownloadView struct {
	Name                 string
	Size                 string
	Id                   string
	IsFailedLogin        bool
	IsAdminView          bool
	ClientSideDecryption bool
	EndToEndEncryption   bool
	UsesHttps            bool
	Cipher               string
}

DownloadView contains parameters for the download template

type LoginView

type LoginView struct {
	IsFailedLogin bool
	User          string
	IsAdminView   bool
}

LoginView contains variables for the login template

type UploadView

type UploadView struct {
	Items                    []models.FileApiOutput
	ApiKeys                  []models.ApiKey
	Url                      string
	HotlinkUrl               string
	GenericHotlinkUrl        string
	TimeNow                  int64
	IsAdminView              bool
	IsApiView                bool
	MaxFileSize              int
	IsLogoutAvailable        bool
	DefaultDownloads         int
	DefaultExpiry            int
	DefaultPassword          string
	DefaultUnlimitedDownload bool
	DefaultUnlimitedTime     bool
	EndToEndEncryption       bool
	ActiveView               int
	Logs                     string
}

UploadView contains parameters for the admin menu template

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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