tf

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var URLDownloadPath string

Functions

func CloseLogFile

func CloseLogFile(requestId string)

func FileDownloadMiddleware

func FileDownloadMiddleware(path string, fp *os.File) gin.HandlerFunc

func GenUUID

func GenUUID() string

GenUUID generates a UUID and returns it.

func GetLogFile

func GetLogFile(requestId string) (fpOut *os.File)

func GetLogFilePtr

func GetLogFilePtr(c *gin.Context) (perReqLog *os.File)

func InFileDownloadList

func InFileDownloadList(s string) (fn string, found bool)

func RequestIdMiddleware

func RequestIdMiddleware() gin.HandlerFunc

func RequestLogger

func RequestLogger(LogFileName string) gin.HandlerFunc

func ResetLogFile

func ResetLogFile(newLf *os.File)

func SetLogFile

func SetLogFile(requestId string, fp *os.File)

func TimedCleanupLogFile

func TimedCleanupLogFile()

func Xtf

func Xtf() error

Types

type RequestLogFile

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

Jump to

Keyboard shortcuts

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