webserver

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

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
	IsMainView               bool
	IsApiView                bool
	MaxFileSize              int
	IsLogoutAvailable        bool
	DefaultDownloads         int
	DefaultExpiry            int
	DefaultPassword          string
	DefaultUnlimitedDownload bool
	DefaultUnlimitedTime     bool
	EndToEndEncryption       bool
}

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