actions

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

You can use the "packr clean" command to clean up this, and any other packr generated files.

Index

Constants

This section is empty.

Variables

View Source
var AppFs = afero.NewOsFs()
View Source
var UserPassword *string

Functions

func DirTree

func DirTree(c echo.Context) error

func Get

func Get(c echo.Context) error

func GetOutboundIP

func GetOutboundIP() string

func HttpRoot

func HttpRoot()

func Login

func Login(c echo.Context) error

func PasswordRandom

func PasswordRandom() string

func Route

func Route(e *echo.Echo) *echo.Echo

func Scan

func Scan(c echo.Context) error

func UserDir

func UserDir() string

Types

type PathInfo

type PathInfo struct {
	Name     string      `json:"name"`
	Path     string      `json:"path"`
	IsDir    bool        `json:"is_dir"`
	Items    int64       `json:"items"`
	Files    int64       `json:"files"`
	Size     int64       `json:"size"`
	Children []*PathInfo `json:"children"`
}

func Find

func Find(data *PathInfo, s []string) *PathInfo

func ScanDir

func ScanDir(s string) *PathInfo

func ScanDirCh

func ScanDirCh(parent *PathInfo) *PathInfo

func (PathInfo) JoinPath

func (d PathInfo) JoinPath(Name string) string

type PathInfoFilter

type PathInfoFilter struct {
	Name     string           `json:"name"`
	Path     string           `json:"path"`
	IsDir    bool             `json:"is_dir"`
	Items    int64            `json:"items"`
	Files    int64            `json:"files"`
	Size     int64            `json:"size"`
	Children []PathInfoFilter `json:"children"`
}

func DataFilter

func DataFilter(data *PathInfo) PathInfoFilter

type User

type User struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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