service

package
v0.0.0-...-16ff62d Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReadmeFilename = "README.md"
)
View Source
const SecureLinkExpireSecond = 300

Variables

This section is empty.

Functions

func CheckSecureLink(path, token, expire string) bool
func GenSecureLink(path string, expire int64) string

func GenSecureLinkStr

func GenSecureLinkStr(path string) string

func InHiddenPath

func InHiddenPath(path string) bool

func ProcMarkdown

func ProcMarkdown(inputFile, baseDir string) (string, error)

Types

type FileItem

type FileItem struct {
	Name    string `json:"name"`
	IsDir   bool   `json:"is_dir"`
	LastMod int64  `json:"last_mod"`
	Size    int64  `json:"size"`
}

func ListDir

func ListDir(path string) (result []FileItem, hasREADME bool, err error)

Jump to

Keyboard shortcuts

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