perview

package
v0.0.0-...-503ed37 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2020 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pattern      string
	Address      string
	AllFile      map[string]*NowFile
	ExpireTime   int64
	AllOfficeEtx = []string{".doc", ".docx", ".xls", ".xlsx", ".ppt", ".pptx", ".txt"}
	AllImageEtx  = []string{".jpg", ".png", ".gif"}
)

Functions

func Handle

func Handle(w http.ResponseWriter, r *http.Request)

func Init

func Init(pattern string, address string)

func Monitor

func Monitor()

func StartServer

func StartServer()

Types

type NowFile

type NowFile struct {
	Md5            string
	Ext            string
	LastActiveTime int64
}

Jump to

Keyboard shortcuts

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