serverHandler

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const LOG_BUF_SIZE = 80
View Source
const TypeDir = template.HTML("dir")
View Source
const TypeFile = template.HTML("file")

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(
	root string,
	emptyRoot bool,
	urlPrefix string,
	p *param.Param,
	users user.Users,
	template *template.Template,
	logger *serverLog.Logger,
	errHandler *serverErrHandler.ErrHandler,
) *handler

Types

type SortState added in v1.8.0

type SortState struct {
	// contains filtered or unexported fields
}

func (SortState) CurrentSort added in v1.8.0

func (info SortState) CurrentSort() string

func (SortState) DirSort added in v1.8.0

func (info SortState) DirSort() dirSort

func (SortState) Key added in v1.8.0

func (info SortState) Key() string

func (SortState) NextDirSort added in v1.8.0

func (info SortState) NextDirSort() string

func (SortState) NextNameSort added in v1.8.0

func (info SortState) NextNameSort() string

func (SortState) NextSizeSort added in v1.8.0

func (info SortState) NextSizeSort() string

func (SortState) NextTimeSort added in v1.8.0

func (info SortState) NextTimeSort() string

func (SortState) NextTypeSort added in v1.8.3

func (info SortState) NextTypeSort() string

Jump to

Keyboard shortcuts

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