webserver

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: AGPL-3.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const ViewAPI = 2

ViewAPI is the identifier for the API menu

View Source
const ViewLogs = 1

ViewLogs is the identifier for the log viewer menu

View Source
const ViewMain = 0

ViewMain is the identifier for the main menu

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
	Cipher               string
	PublicName           string
	BaseUrl              string
	IsFailedLogin        bool
	IsAdminView          bool
	IsDownloadView       bool
	IsPasswordView       bool
	ClientSideDecryption bool
	EndToEndEncryption   bool
	UsesHttps            bool
}

DownloadView contains parameters for the download template

type LoginView

type LoginView struct {
	IsFailedLogin  bool
	IsAdminView    bool
	IsDownloadView bool
	User           string
	PublicName     string
}

LoginView contains variables for the login template

type UploadView

type UploadView struct {
	Items                    []models.FileApiOutput
	ApiKeys                  []models.ApiKey
	ServerUrl                string
	DefaultPassword          string
	Logs                     string
	PublicName               string
	IsAdminView              bool
	IsDownloadView           bool
	IsApiView                bool
	IsLogoutAvailable        bool
	DefaultUnlimitedDownload bool
	DefaultUnlimitedTime     bool
	EndToEndEncryption       bool
	IncludeFilename          bool
	MaxFileSize              int
	DefaultDownloads         int
	DefaultExpiry            int
	ActiveView               int
	ChunkSize                int
	MaxParallelUploads       int
	TimeNow                  int64
}

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